Mark McLoughlin 44344b2a85 [INET]: Fix netdev renaming and inet address labels
When re-naming an interface, the previous secondary address
labels get lost e.g.

  $> brctl addbr foo
  $> ip addr add 192.168.0.1 dev foo
  $> ip addr add 192.168.0.2 dev foo label foo:00
  $> ip addr show dev foo | grep inet
    inet 192.168.0.1/32 scope global foo
    inet 192.168.0.2/32 scope global foo:00
  $> ip link set foo name bar
  $> ip addr show dev bar | grep inet
    inet 192.168.0.1/32 scope global bar
    inet 192.168.0.2/32 scope global bar:2

Turns out to be a simple thinko in inetdev_changename() - clearly we
want to look at the address label, rather than the device name, for
a suffix to retain.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-04 03:55:34 -08:00
..
2007-12-16 13:35:51 -08:00
2007-12-20 13:59:39 -08:00
2007-12-20 14:01:35 -08:00
2007-12-20 14:00:51 -08:00
2007-12-20 14:03:11 -08:00
2007-11-29 18:08:48 -05:00
2007-12-07 04:31:47 -08:00
2007-12-20 14:02:40 -08:00
2007-12-20 14:03:52 -08:00
2007-12-14 13:54:37 -08:00
2008-01-04 00:47:02 -08:00
2005-04-16 15:20:36 -07:00