Strange behaviour of ip(8)

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

 



  Hello!

  If IPv6 support is not compiled in the kernel then command
ip -6 addr flush dev eth0
  will simply flush all addresses of the eth0 card. While if IPv6 is
compiled only IPv6 address is flushed. I find this a bit annoying. I
think the problem is in function rnetlink_rcv_msg() where we do:

link_tab = rtnetlink_links[family];
if (link_tab == NULL)
        link_tab=rtnetlink_links[PF_UNSPEC];

  So could this be changed to just returning error when link_tab is NULL
or is there something actually using the fact that non-existent
protocols behave as PF_UNSPEC?

								Honza

-- 
Jan Kara <jack@xxxxxxx>
SuSE CR Labs
-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux