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.
Moved to https://github.com/strace/strace/issues/41