X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fnetdev.h;h=0111e528f88c44f60474112eed3af3f9af3aea53;hb=686e34c8b7406e3a6dabe78eeab52d51780ee120;hp=57b7cbd46542f455daff0d643ec2cd624cb114df;hpb=e55d52c988aa9b65c8273591ee29676b4f915313;p=sliver-openvswitch.git diff --git a/include/netdev.h b/include/netdev.h index 57b7cbd46..0111e528f 100644 --- a/include/netdev.h +++ b/include/netdev.h @@ -63,16 +63,22 @@ int netdev_open(const char *name, int ethertype, struct netdev **); void netdev_close(struct netdev *); int netdev_recv(struct netdev *, struct buffer *); void netdev_recv_wait(struct netdev *); +void netdev_drain(struct netdev *); int netdev_send(struct netdev *, const struct buffer *); 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 *); 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); bool netdev_get_in6(const struct netdev *, struct in6_addr *); int netdev_get_flags(const struct netdev *, enum netdev_flags *); -int netdev_set_flags(struct netdev *, enum netdev_flags); +int netdev_set_flags(struct netdev *, enum netdev_flags, bool permanent); +int netdev_turn_flags_on(struct netdev *, enum netdev_flags, bool permanent); +int netdev_turn_flags_off(struct netdev *, enum netdev_flags, bool permanent); int netdev_arp_lookup(const struct netdev *, uint32_t ip, uint8_t mac[6]); #endif /* netdev.h */