Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/net/
Dnetlink-dumps.c48 int netlink_sock; in TEST() local
52 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST()
53 ASSERT_GE(netlink_sock, 0); in TEST()
55 n = send(netlink_sock, &dump_policies, sizeof(dump_policies), 0); in TEST()
58 n = recv(netlink_sock, buf, sizeof(buf), MSG_DONTWAIT); in TEST()
61 n = recv(netlink_sock, buf, sizeof(buf), MSG_DONTWAIT); in TEST()
64 close(netlink_sock); in TEST()
69 int netlink_sock; in TEST() local
72 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST()
73 ASSERT_GE(netlink_sock, 0); in TEST()
[all …]
Dipsec.c192 static int netlink_sock(int *sock, uint32_t *seq_nr, int proto) in netlink_sock() function
492 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) { in init_child()
1334 if (netlink_sock(sock, seq, proto)) { in netlink_sock_bind()
1812 if (netlink_sock(&xfrm_sock, &seq, NETLINK_XFRM)) { in child_f()
1940 if (netlink_sock(&xfrm_sock, &seq, NETLINK_XFRM)) { in grand_child_f()
2308 if (netlink_sock(&route_sock, &route_seq, NETLINK_ROUTE)) in main()
/linux-6.12.1/net/netlink/
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()
Daf_netlink.c364 struct netlink_sock *nlk = nlk_sk(sk); in netlink_rcv_wake()
479 const struct netlink_sock *nlk = ptr; in netlink_compare()
618 .obj_size = sizeof(struct netlink_sock),
625 struct netlink_sock *nlk; in __netlink_create()
651 struct netlink_sock *nlk; in netlink_create()
708 struct netlink_sock *nlk = container_of(head, struct netlink_sock, rcu); in deferred_put_nlk_sk()
723 struct netlink_sock *nlk; in netlink_release()
925 struct netlink_sock *nlk = nlk_sk(sk); in netlink_update_subscriptions()
936 struct netlink_sock *nlk = nlk_sk(sk); in netlink_realloc_groups()
970 struct netlink_sock *nlk = nlk_sk(sk); in netlink_undo_bind()
[all …]
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-6.12.1/tools/testing/selftests/net/tcp_ao/lib/
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-6.12.1/tools/testing/selftests/bpf/progs/
Dbpf_iter_netlink.c18 struct netlink_sock *nlk = ctx->sk; in dump_netlink()
Dbpf_iter.h65 struct netlink_sock *sk;
/linux-6.12.1/tools/testing/selftests/bpf/
DREADME.rst185 ; struct netlink_sock *nlk = ctx->sk;