X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Frtnetlink-link.c;h=ad83a1d2797741ae405bbfabd3561603098beccd;hb=6e11a6a15519561d932a018b2ca19dc3acee87c2;hp=ffd615bfaf2e79a44088fea5c61f3c5cfd67a0db;hpb=21d6e22eeec05a1c382178dc2eb840afe3b9cca6;p=openvswitch diff --git a/lib/rtnetlink-link.c b/lib/rtnetlink-link.c index ffd615bf..ad83a1d2 100644 --- a/lib/rtnetlink-link.c +++ b/lib/rtnetlink-link.c @@ -29,7 +29,10 @@ static struct rtnetlink *rtn = NULL; static struct rtnetlink_link_change rtn_change; -static bool +/* Parses a rtnetlink message 'buf' into 'change'. If 'buf' is unparseable, + * leaves 'change' untouched and returns false. Otherwise, populates 'change' + * and returns true. */ +bool rtnetlink_link_parse(struct ofpbuf *buf, struct rtnetlink_link_change *change) {