X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetdev.h;h=f9add0bee99fec8a4789d51f79bc7976640444af;hb=5fa270099ab418ed0063144777ec76716dd3a207;hp=13d2ee76e8e66ae54fd4a5d17d81577c1a4490b5;hpb=18812dff32ce650440b9f1eac1bb00afe08c621a;p=openvswitch diff --git a/lib/netdev.h b/lib/netdev.h index 13d2ee76..f9add0be 100644 --- a/lib/netdev.h +++ b/lib/netdev.h @@ -90,7 +90,7 @@ void netdev_close(struct netdev *); bool netdev_exists(const char *name); bool netdev_is_open(const char *name); -int netdev_enumerate(struct sset *); +void netdev_parse_name(const char *netdev_name, char **name, char **type); /* Options. */ int netdev_set_config(struct netdev *, const struct shash *args); @@ -100,6 +100,7 @@ int netdev_get_config(const struct netdev *, struct shash *); const char *netdev_get_name(const struct netdev *); const char *netdev_get_type(const struct netdev *); int netdev_get_mtu(const struct netdev *, int *mtup); +int netdev_set_mtu(const struct netdev *, int mtu); int netdev_get_ifindex(const struct netdev *); /* Packet send and receive. */