]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: Properly display AF_BRIDGE address information for neighbor events
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Feb 2018 19:10:09 +0000 (14:10 -0500)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 23 Feb 2018 19:27:09 +0000 (11:27 -0800)
commit728eb8d00b3b87adcaf25b19cf5fb2dbb1965b60
treeb4857482c4b41f19a9c03b19cd97f5c636bbb30e
parent4ac152d003311c43a337b60a5123ba9919d65121
ip: Properly display AF_BRIDGE address information for neighbor events

The vxlan driver when a neighbor add/delete event occurs sends
NDA_DST filled with a union:

union vxlan_addr {
struct sockaddr_in sin;
struct sockaddr_in6 sin6;
struct sockaddr sa;
};

This eventually calls rt_addr_n2a_r which had no handler for the
AF_BRIDGE family and "???" was being printed.

Add code to properly display this data when requested.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/utils.c