> -----Original Message----- > From: Tim Wright [mailto:[EMAIL PROTECTED] > Sent: Friday, December 01, 2006 2:21 PM > To: Thomas Graf; Tim Wright > Cc: David Miller; [EMAIL PROTECTED]; [email protected] > Subject: RE: Arp undo issue in all 2.4 and 2.6 kernel releases > > > > > -----Original Message----- > > From: Thomas Graf [mailto:[EMAIL PROTECTED] > > Sent: Friday, December 01, 2006 2:15 PM > > To: Tim Wright > > Cc: David Miller; [EMAIL PROTECTED]; [email protected] > > Subject: Re: Arp undo issue in all 2.4 and 2.6 kernel releases > > > > * Tim Wright <[EMAIL PROTECTED]> 2006-12-01 11:37 > > > [EMAIL PROTECTED] root]# ifconfig eth0:6 10.12.0.22 netmask > > 255.255.0.0 up > > > SIOCSIFFLAGS: Cannot assign requested address > > > > You could please also provide a strace -e ioctl so we cann see what > > ifconfig is trying to do exactly. Address changes are only > propagated > > to the local route table if successful. > > > > Anyways, in general this interface is deprecated, you > should use 'ip > > addr add/remove ...] instead of interface aliases. > > > > Hi Thomas, > Here is the strace output. > > [EMAIL PROTECTED] 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 > [EMAIL PROTECTED] root]# strace -e ioctl ifconfig eth0:6 > 10.12.0.22 netmask 255.255.0.0 up > ioctl(4, 0x8916, 0xbfc835b0) = 0 > ioctl(4, 0x8913, 0xbfc834e0) = 0 > ioctl(4, 0x8914, 0xbfc834e0) = 0 > ioctl(4, 0x891c, 0xbfc835b0) = 0 > ioctl(4, 0x8913, 0xbfc834e0) = 0 > ioctl(4, 0x8914, 0xbfc834e0) = -1 EADDRNOTAVAIL (Cannot > assign requested address) > SIOCSIFFLAGS: Cannot assign requested address > > I am grabbing the ifconfig source to try to see exactly what > they are doing. > > Thanks, > > Tim >
Very odd. That's SIOCSIFADDR, SIOCGIFFLAGS, SIOCSIFFLAGS followed by SIOCSIFNETMASK, SIOCGIFFLAGS, SIOCSIFFLAGS. Apparently, the set address succeeds, and things only blow up when it attempts to set the interface flags for the second time. Tim - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
