LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setting IP Address to an Interface using System Call (http://www.linuxquestions.org/questions/linux-networking-3/setting-ip-address-to-an-interface-using-system-call-282081/)

Kirthi 01-25-2005 12:11 PM

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

avarus 01-30-2005 11:20 AM

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


All times are GMT -5. The time now is 02:26 PM.