mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
lib: Show tunnel egress interface in ovsdb
This commit parses rtnetlink address notifications from the kernel in order to display the egress interface of tunnels in the database. Bug #4103.
This commit is contained in:
10
lib/netdev.c
10
lib/netdev.c
@@ -769,6 +769,16 @@ netdev_get_next_hop(const struct netdev *netdev,
|
||||
return error;
|
||||
}
|
||||
|
||||
const char *
|
||||
netdev_get_tnl_iface(const struct netdev *netdev)
|
||||
{
|
||||
struct netdev_dev *dev = netdev_get_dev(netdev);
|
||||
|
||||
return (dev->netdev_class->get_tnl_iface
|
||||
? dev->netdev_class->get_tnl_iface(netdev)
|
||||
: NULL);
|
||||
}
|
||||
|
||||
/* If 'netdev' has an assigned IPv6 address, sets '*in6' to that address and
|
||||
* returns 0. Otherwise, returns a positive errno value and sets '*in6' to
|
||||
* all-zero-bits (in6addr_any).
|
||||
|
Reference in New Issue
Block a user