2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

netdev: New function netdev_get_ifindex().

sFlow needs the ifindex of an interface, so this commit adds a function
to retrieve it.
This commit is contained in:
Ben Pfaff
2009-11-23 12:25:08 -08:00
parent d161c09927
commit 9ab3d9a3c2
4 changed files with 39 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ int netdev_enumerate(struct svec *);
const char *netdev_get_name(const struct netdev *);
int netdev_get_mtu(const struct netdev *, int *mtup);
int netdev_get_ifindex(const struct netdev *);
int netdev_recv(struct netdev *, struct ofpbuf *);
void netdev_recv_wait(struct netdev *);