X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Frtnetlink-link.h;h=b6ddb2149eb136cc8a18417f4daf366a7c21bbc4;hb=3e5b3fdbf52cee41142ed8e2bf5cab9f49146d97;hp=c41612d1158f868ddd2693a05936228f9f0d1df9;hpb=ea83a2fcd0d31246ece7bdea4c54e162f432e81c;p=openvswitch diff --git a/lib/rtnetlink-link.h b/lib/rtnetlink-link.h index c41612d1..b6ddb214 100644 --- a/lib/rtnetlink-link.h +++ b/lib/rtnetlink-link.h @@ -20,7 +20,7 @@ #include struct ofpbuf; -struct rtnetlink_notifier; +struct nln_notifier; /* These functions are Linux specific, so they should be used directly only by * Linux-specific code. */ @@ -37,6 +37,7 @@ struct rtnetlink_link_change { /* Extracted from Netlink attributes. */ const char *ifname; /* Name of network device. */ int master_ifindex; /* Ifindex of datapath master (0 if none). */ + unsigned int ifi_flags; /* Flags of network device. */ }; /* Function called to report that a netdev has changed. 'change' describes the @@ -50,9 +51,9 @@ void rtnetlink_link_notify_func(const struct rtnetlink_link_change *change, bool rtnetlink_link_parse(struct ofpbuf *buf, struct rtnetlink_link_change *change); -int rtnetlink_link_notifier_register(struct rtnetlink_notifier *, - rtnetlink_link_notify_func *, void *aux); -void rtnetlink_link_notifier_unregister(struct rtnetlink_notifier *); -void rtnetlink_link_notifier_run(void); -void rtnetlink_link_notifier_wait(void); +struct nln_notifier * +rtnetlink_link_notifier_create(rtnetlink_link_notify_func *, void *aux); +void rtnetlink_link_notifier_destroy(struct nln_notifier *); +void rtnetlink_link_run(void); +void rtnetlink_link_wait(void); #endif /* rtnetlink-link.h */