netdev-linux: Make netdev_linux_get_in6() conform to API definition.
authorAlex Wang <alexw@nicira.com>
Thu, 23 Jul 2015 23:25:32 +0000 (16:25 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 28 Jul 2015 16:27:42 +0000 (09:27 -0700)
commit7df6932e0f6d4a97d7a7315e444e178fde2f5f45
tree0d463b7aee4312f147245c1a7d2a2b99a5bd237a
parentd6384a3a20cc6b5f164d660ecee998e198cdd099
netdev-linux: Make netdev_linux_get_in6() conform to API definition.

The get_in6() API defined in netdev-provider.h requires the return
of error values when the 'netdev' has no assigned IPv6 address or
the 'netdev' does not support IPv6.  However, the netdev_linux_get_in6()
implementation does not follow this (always return 0).  And this
causes the a bug in deleting vlan interfaces created for vlan
splinter.

This commit makes netdev_linux_get_in6() conform to the API definition
and returns the specified error value when failing to get IPv6 address.

VMware-BZ: #1485521
Reported-by: Ronald Lee <ronaldlee@vmware.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/netdev-linux.c