Re: how does ifconfig communicates with network device driver strace output given

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 12, 2010 at 14:28, Tapas Mishra <mightydreams@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux