X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fnetdev.h;h=cc81e6cac1ee6dae8415fff89cedacd09e5be3db;hb=9ac3fce4d5aea7e963439eb97f7c2d157aef4dfc;hp=30bcf5ecc87b70971aef6ede5ffefc31d8d31290;hpb=007948177581f3b3dad188221593d0e4bdca6ba0;p=openvswitch diff --git a/lib/netdev.h b/lib/netdev.h index 30bcf5ec..cc81e6ca 100644 --- a/lib/netdev.h +++ b/lib/netdev.h @@ -130,7 +130,7 @@ int netdev_get_etheraddr(const struct netdev *, uint8_t mac[6]); /* PHY interface. */ bool netdev_get_carrier(const struct netdev *); -bool netdev_get_miimon(const struct netdev *); +int netdev_set_miimon_interval(struct netdev *, long long int interval); int netdev_get_features(const struct netdev *, uint32_t *current, uint32_t *advertised, uint32_t *supported, uint32_t *peer); @@ -214,6 +214,7 @@ void netdev_monitor_destroy(struct netdev_monitor *); int netdev_monitor_add(struct netdev_monitor *, struct netdev *); void netdev_monitor_remove(struct netdev_monitor *, struct netdev *); int netdev_monitor_poll(struct netdev_monitor *, char **devnamep); +void netdev_monitor_flush(struct netdev_monitor *); void netdev_monitor_poll_wait(const struct netdev_monitor *); #ifdef __cplusplus