LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-25-2005, 12:11 PM   #1
Kirthi
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
Setting IP Address to an Interface using System Call


Hello All,

Is there a way to set an IP Address to a particular interface using a System Call?

Please let me know

thanks
Kirthi
 
Old 01-30-2005, 11:20 AM   #2
avarus
Member
 
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 32
This sounds more like a programming question to me. You could take a look at the source code for net-tools (http://freshmeat.net/projects/net-tools/) and borrow from that but it is pretty opaque. Looks like you basically have to feed the right struct to the right ioctl.

May be worth mailing the author directly, or else asking on one of the kernel lists. I'm not sure many true hackers read LQ.

TIM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get ip address associated with an interface ro0tless Linux - Networking 4 10-03-2011 12:18 PM
Getting IP address from an interface in C dravya Programming 2 05-25-2004 02:48 PM
?call log web interface pudhiyavan Linux - Networking 1 02-09-2004 01:37 PM
any sys call to get ip address of NIC jmdey Linux - General 2 05-30-2002 03:09 PM
How can I retrieve the IP address of an interface? kobilevi Linux - Networking 2 05-15-2001 07:31 AM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration