X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fnetdev.h;h=f36b920d2c05eb677c5b3628ea819e93fe79d7bd;hb=9da88ee2ad791e259a8c88ba2fc116830293aaf5;hp=8663b33bfa8844a3bd4bc6ff0b1b60aec20468bb;hpb=f593e3ab70ab06acbf97cbb0a9f897dc4f078011;p=sliver-openvswitch.git diff --git a/include/netdev.h b/include/netdev.h index 8663b33bf..f36b920d2 100644 --- a/include/netdev.h +++ b/include/netdev.h @@ -47,6 +47,13 @@ struct ofpbuf; struct in_addr; struct in6_addr; +enum netdev_feature_type { + NETDEV_FEAT_CURRENT, + NETDEV_FEAT_ADVERTISED, + NETDEV_FEAT_SUPPORTED, + NETDEV_FEAT_PEER +}; + enum netdev_flags { NETDEV_UP = 0x0001, /* Device enabled? */ NETDEV_PROMISC = 0x0002 /* Promiscuous mode? */ @@ -68,9 +75,8 @@ int netdev_send(struct netdev *, const struct ofpbuf *); const uint8_t *netdev_get_etheraddr(const struct netdev *); const char *netdev_get_name(const struct netdev *); int netdev_get_mtu(const struct netdev *); -int netdev_get_speed(const struct netdev *); int netdev_get_link_status(const struct netdev *); -uint32_t netdev_get_features(const struct netdev *); +uint32_t netdev_get_features(struct netdev *, int); bool netdev_get_in4(const struct netdev *, struct in_addr *); int netdev_set_in4(struct netdev *, struct in_addr addr, struct in_addr mask); int netdev_add_router(struct netdev *, struct in_addr router);