summaryrefslogtreecommitdiffstats
path: root/lib/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/socket.c')
-rw-r--r--lib/socket.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/socket.c b/lib/socket.c
index 8083bbb..bed53c1 100644
--- a/lib/socket.c
+++ b/lib/socket.c
@@ -398,6 +398,18 @@ void nl_socket_set_peer_port(struct nl_sock *sk, uint32_t port)
sk->s_peer.nl_pid = port;
}
+uint32_t nl_socket_get_peer_groups(struct nl_sock *sk)
+{
+ return sk->s_peer.nl_groups;
+}
+
+void nl_socket_set_peer_groups(struct nl_sock *sk, uint32_t groups)
+{
+ sk->s_peer.nl_groups = groups;
+}
+
+
+
/** @} */
/**