From a86bd14ec97270fde85a06ce702cdd9ef0d038ca Mon Sep 17 00:00:00 2001 From: Flavio Leitner Date: Thu, 29 Mar 2018 23:05:26 -0300 Subject: netlink: provide network namespace id from a msg. The netlink notification's ancillary data contains the network namespace id (netnsid) needed to identify the device correctly. Signed-off-by: Flavio Leitner Signed-off-by: Ben Pfaff --- lib/netlink-socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/netlink-socket.h') diff --git a/lib/netlink-socket.h b/lib/netlink-socket.h index d3cc64288..98f6554fa 100644 --- a/lib/netlink-socket.h +++ b/lib/netlink-socket.h @@ -221,7 +221,7 @@ int nl_sock_unsubscribe_packets(struct nl_sock *sock); int nl_sock_send(struct nl_sock *, const struct ofpbuf *, bool wait); int nl_sock_send_seq(struct nl_sock *, const struct ofpbuf *, uint32_t nlmsg_seq, bool wait); -int nl_sock_recv(struct nl_sock *, struct ofpbuf *, bool wait); +int nl_sock_recv(struct nl_sock *, struct ofpbuf *, int *nsid, bool wait); int nl_sock_drain(struct nl_sock *); -- cgit v1.2.1