Re: Arp undo issue in all 2.4 and 2.6 kernel releases
From: Thomas Graf
Date: Wed Dec 06 2006 - 06:40:01 EST
* Tim Wright <timw@xxxxxxxxxxxxx> 2006-12-01 14:27
> > [root@nfstest root]# strace -e ioctl ifconfig eth0:5
> > 10.12.0.22 netmask 255.255.0.0 up
> > ioctl(4, 0x8916, 0xbfb15440) = 0
> > ioctl(4, 0x8913, 0xbfb15370) = 0
> > ioctl(4, 0x8914, 0xbfb15370) = 0
> > ioctl(4, 0x891c, 0xbfb15440) = 0
> > ioctl(4, 0x8913, 0xbfb15370) = 0
> > ioctl(4, 0x8914, 0xbfb15370) = 0
> > [root@nfstest root]# strace -e ioctl ifconfig eth0:6
> > 10.12.0.22 netmask 255.255.0.0 up
> > ioctl(4, 0x8916, 0xbfc835b0) = 0
SIOCSIFADDR returns 0 because 10.12.0.22 is already the local address
> > ioctl(4, 0x8913, 0xbfc834e0) = 0
SIOCGIFFLAGS returns the current interface flags
> > ioctl(4, 0x8914, 0xbfc834e0) = 0
SIOCSIFFLAGS returns 0, eth0 is already up and running
> > ioctl(4, 0x891c, 0xbfc835b0) = 0
SIOCSIFNETMASK returns 0, 255.255.0.0 is already the netmask of
the configured local address
> > ioctl(4, 0x8913, 0xbfc834e0) = 0
SIOCGIFFLAGS returns the current interface flags again
> > ioctl(4, 0x8914, 0xbfc834e0) = -1 EADDRNOTAVAIL (Cannot
> > assign requested address)
> > SIOCSIFFLAGS: Cannot assign requested address
The first SIOCSIFFLAGS was on device level, this SIOCSIFFLAGS is
for AF_INET and fails because there is no local address 10.12.0.22
with a label eth0:6. The configured local address 10.12.0.22 has
the label eth0:5.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html