On Fri, Nov 12, 2010 at 14:28, Tapas Mishra <[email protected]> wrote:
> device or how does
> ifconfig communicates with kernel and I see the resultant commands
> issued via strace as you see in above pastebin output.

You ask how ifconfig does IP setting, right? Please see line 114:


ioctl(4, SIOCGIFCONF, {200, {{"lo", {AF_INET,
inet_addr("127.0.0.1")}}, {"eth0", {AF_INET,
inet_addr("192.168.1.197")}}, {"virbr0", {AF_INET,
inet_addr("192.168.122.1")}}, {"vmnet1", {AF_INET,
inet_addr("192.168.205.1")}}, {"vmnet8", {AF_INET,
inet_addr("192.168.43.1")}}}}) = 0
#
ioctl(5, SIOCGIFFLAGS, {ifr_name="eth0",
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST}) = 0

It's ioctl..

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to