Setting IP Address to an Interface using System Call
Is there a way to set an IP Address to a particular interface using a System Call?
Please let me know
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.
|All times are GMT -5. The time now is 05:23 PM.|