Home
last modified time | relevance | path

Searched refs:netlink_sock (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/net/
H A Dnetlink-dumps.c114 int netlink_sock; in TEST() local
120 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in TEST()
121 ASSERT_GE(netlink_sock, 0); in TEST()
123 n = setsockopt(netlink_sock, SOL_NETLINK, NETLINK_CAP_ACK, in TEST()
126 n = setsockopt(netlink_sock, SOL_NETLINK, NETLINK_EXT_ACK, in TEST()
129 n = setsockopt(netlink_sock, SOL_NETLINK, NETLINK_GET_STRICT_CHK, in TEST()
136 n = send(netlink_sock, &dump_neigh_bad, in TEST()
142 n = recv(netlink_sock, buf, sizeof(buf), MSG_DONTWAIT); in TEST()
150 n = recv(netlink_sock, buf, sizeof(buf), MSG_DONTWAIT); in TEST()
201 int netlink_sock; in TEST() local
[all …]
H A Dipsec.c192 static int netlink_sock(int *sock, uint32_t *seq_nr, int proto) in netlink_sock() function
493 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) { in init_child()
1335 if (netlink_sock(sock, seq, proto)) { in netlink_sock_bind()
1813 if (netlink_sock(&xfrm_sock, &seq, NETLINK_XFRM)) { in child_f()
1941 if (netlink_sock(&xfrm_sock, &seq, NETLINK_XFRM)) { in grand_child_f()
2309 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in main()
/linux/net/netlink/
H A Daf_netlink.h24 struct netlink_sock { struct
54 static inline struct netlink_sock *nlk_sk(struct sock *sk) in nlk_sk() argument
56 return container_of(sk, struct netlink_sock, sk); in nlk_sk()
H A Ddiag.c14 struct netlink_sock *nlk = nlk_sk(sk); in sk_diag_dump_groups()
25 struct netlink_sock *nlk = nlk_sk(sk); in sk_diag_put_flags()
50 struct netlink_sock *nlk = nlk_sk(sk); in sk_diag_fill()
96 struct netlink_sock *nlsk; in __netlink_diag_dump()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dnetlink.c16 static int netlink_sock(int *sock, uint32_t *seq_nr, int proto) in netlink_sock() function
189 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in add_veth()
235 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in ip_addr_add()
292 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in ip_route_add_vrf()
339 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in link_set_up()
407 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in add_vrf()
/linux/tools/testing/selftests/bpf/
H A DREADME.rst185 ; struct netlink_sock *nlk = ctx->sk;