12 #ifndef NETLINK_SOCKET_H_
13 #define NETLINK_SOCKET_H_
15 #include <netlink/types.h>
16 #include <netlink/handlers.h>
26 extern uint32_t nl_socket_get_local_port(
const struct nl_sock *);
30 extern int nl_socket_add_membership(
struct nl_sock *,
int);
32 extern int nl_socket_drop_membership(
struct nl_sock *,
37 extern uint32_t nl_socket_get_peer_port(
const struct nl_sock *);
38 extern void nl_socket_set_peer_port(
struct nl_sock *,
40 extern uint32_t nl_socket_get_peer_groups(
const struct nl_sock *sk);
41 extern void nl_socket_set_peer_groups(
struct nl_sock *sk, uint32_t groups);
42 extern struct nl_cb * nl_socket_get_cb(
const struct nl_sock *);
43 extern void nl_socket_set_cb(
struct nl_sock *,