summaryrefslogtreecommitdiff
path: root/lib/netlink-socket.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-07-05 08:41:03 -0700
committerBen Pfaff <blp@nicira.com>2012-07-05 08:41:03 -0700
commitff459dd649b17f2a2613799c466e979ddd64cdf0 (patch)
tree8576da1342b34a356faf6833a28b3707108a90ab /lib/netlink-socket.h
parentf471bca43f311891823d930e29ad34d18e05e951 (diff)
downloadopenvswitch-ff459dd649b17f2a2613799c466e979ddd64cdf0.tar.gz
ovs-brcompatd: Fix sending replies to kernel requests.
Commit 7d7447 (netlink: Postpone choosing sequence numbers until send time.) broke ovs-brcompatd because it prevented userspace replies to kernel requests from using the correct sequence numbers. This commit fixes it. Atzm Watanabe found the root cause and provided an alternative patch to avoid the problem. Reported-by: André Ruß <andre.russ@hybris.com> Reported-by: Atzm Watanabe <atzm@stratosphere.co.jp> Tested-by: Atzm Watanabe <atzm@stratosphere.co.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/netlink-socket.h')
-rw-r--r--lib/netlink-socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/netlink-socket.h b/lib/netlink-socket.h
index e74bc9837..78dd7b23a 100644
--- a/lib/netlink-socket.h
+++ b/lib/netlink-socket.h
@@ -52,6 +52,8 @@ int nl_sock_join_mcgroup(struct nl_sock *, unsigned int multicast_group);
int nl_sock_leave_mcgroup(struct nl_sock *, unsigned int multicast_group);
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_transact(struct nl_sock *, const struct ofpbuf *request,
struct ofpbuf **replyp);