diff options
author | Jesse Gross <jesse@nicira.com> | 2011-09-16 09:37:16 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2011-09-23 15:27:48 -0700 |
commit | 50802adb0e00bbf381c31b9e32a7a6a3e920e7ac (patch) | |
tree | 145983c796004574908cf60f91c60b51c5ce1f7e /lib/netlink-socket.h | |
parent | e60a5e26371a7079a9ffcc57d2f96b8ee9de7da9 (diff) |
netlink: Expose method to get Netlink pid of a socket.
In the future, the kernel will use unicast messages instead of
multicast to send upcalls. As a result, we need to be able to
tell it where to direct the traffic. This adds a function to expose
the Netlink pid of a socket so it can be included in messages to the
kernel.
Diffstat (limited to 'lib/netlink-socket.h')
-rw-r--r-- | lib/netlink-socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/netlink-socket.h b/lib/netlink-socket.h index 3ea790cf..ff248583 100644 --- a/lib/netlink-socket.h +++ b/lib/netlink-socket.h @@ -60,6 +60,8 @@ int nl_sock_drain(struct nl_sock *); void nl_sock_wait(const struct nl_sock *, short int events); +uint32_t nl_sock_pid(const struct nl_sock *); + /* Table dumping. */ struct nl_dump { struct nl_sock *sock; /* Socket being dumped. */ |