Searched refs:netlink_sock (Results 1 – 9 of 9) sorted by relevance
/linux-6.12.1/tools/testing/selftests/net/ |
D | netlink-dumps.c | 48 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 …]
|
D | ipsec.c | 192 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/ |
D | af_netlink.h | 24 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()
|
D | af_netlink.c | 364 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 …]
|
D | diag.c | 14 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/ |
D | netlink.c | 16 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/ |
D | bpf_iter_netlink.c | 18 struct netlink_sock *nlk = ctx->sk; in dump_netlink()
|
D | bpf_iter.h | 65 struct netlink_sock *sk;
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | README.rst | 185 ; struct netlink_sock *nlk = ctx->sk;
|