2
0
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:
Ethan Jackson
2010-12-21 16:26:21 -08:00
parent 21d6e22eee
commit ea83a2fcd0
14 changed files with 566 additions and 13 deletions

View File

@@ -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).