summaryrefslogtreecommitdiff
path: root/include/netlink/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netlink/socket.h')
-rw-r--r--include/netlink/socket.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/netlink/socket.h b/include/netlink/socket.h
index 9f7f422..bcb934c 100644
--- a/include/netlink/socket.h
+++ b/include/netlink/socket.h
@@ -166,6 +166,16 @@ static inline void nl_socket_disable_msg_peek(struct nl_sock *sk)
sk->s_flags &= ~NL_MSG_PEEK;
}
+static inline uint32_t nl_socket_get_peer_groups(struct nl_sock *sk)
+{
+ return sk->s_peer.nl_groups;
+}
+
+static inline void nl_socket_set_peer_groups(struct nl_sock *sk, uint32_t groups)
+{
+ sk->s_peer.nl_groups = groups;
+}
+
/**
* @name Callback Handler
* @{