Menu

#28 struct rtentry

None
closed
nobody
None
5
2018-04-05
2007-09-18
charmik
No

I did some modifications on strace.
Original strace:
Calling for ex. "strace ifconfig eth0:1 192.168.1.2" by
ioctl calls no values for IP can be seen, only addresses.
Ex.:"ioctl(4, SIOCSIFADDR, 0xbfd5b390) = 0".

After my modifications:
Ex.:"ioctl(4, SIOCSIFADDR, {ifr_name="eth0:1",
ifr_addr={AF_INET, inet_addr("192.168.1.2")}}) = 0"

The same is for "strace route add ...". After my
modifications the values for IP, gateway and netmask can
be seen.

The patch is attached.

Discussion

  • charmik

    charmik - 2007-09-18
     
  • Eugene Syromyatnikov

    • status: open --> closed
    • Group: -->