Symbol: AF_NETLINK
include/linux/socket.h
223
#define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */
include/linux/socket.h
279
#define PF_NETLINK AF_NETLINK
include/net/sock.h
2959
sk->sk_family == AF_NETLINK ||
net/netlink/af_netlink.c
1076
if (addr->sa_family != AF_NETLINK)
net/netlink/af_netlink.c
1111
nladdr->nl_family = AF_NETLINK;
net/netlink/af_netlink.c
1170
if (sock->sk_family != AF_NETLINK)
net/netlink/af_netlink.c
1840
if (addr->nl_family != AF_NETLINK)
net/netlink/af_netlink.c
1955
addr->nl_family = AF_NETLINK;
net/netlink/af_netlink.c
983
if (nladdr->nl_family != AF_NETLINK)
net/netlink/diag.c
245
.family = AF_NETLINK,
net/netlink/diag.c
58
rep->ndiag_family = AF_NETLINK;
samples/bpf/xdp_router_ipv4_user.c
267
sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
samples/bpf/xdp_router_ipv4_user.c
273
sa.nl_family = AF_NETLINK;
samples/bpf/xdp_router_ipv4_user.c
403
sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
samples/bpf/xdp_router_ipv4_user.c
409
sa.nl_family = AF_NETLINK;
samples/bpf/xdp_router_ipv4_user.c
458
sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
samples/bpf/xdp_router_ipv4_user.c
466
lr.nl_family = AF_NETLINK;
samples/bpf/xdp_router_ipv4_user.c
477
sock_arp = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
samples/bpf/xdp_router_ipv4_user.c
486
la.nl_family = AF_NETLINK;
samples/connector/ucon.c
145
l_local.nl_family = AF_NETLINK;
tools/accounting/delaytop.c
402
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
tools/accounting/delaytop.c
407
local.nl_family = AF_NETLINK;
tools/accounting/delaytop.c
450
nladdr.nl_family = AF_NETLINK;
tools/accounting/getdelays.c
107
local.nl_family = AF_NETLINK;
tools/accounting/getdelays.c
146
nladdr.nl_family = AF_NETLINK;
tools/accounting/getdelays.c
94
fd = socket(AF_NETLINK, SOCK_RAW, protocol);
tools/accounting/procacct.c
100
fd = socket(AF_NETLINK, SOCK_RAW, protocol);
tools/accounting/procacct.c
113
local.nl_family = AF_NETLINK;
tools/accounting/procacct.c
152
nladdr.nl_family = AF_NETLINK;
tools/bpf/bpftool/net.c
117
sa.nl_family = AF_NETLINK;
tools/bpf/bpftool/net.c
119
sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
tools/lib/bpf/netlink.c
60
sa.nl_family = AF_NETLINK;
tools/lib/bpf/netlink.c
62
sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
tools/net/ynl/lib/ynl.c
756
ys->socket = socket(AF_NETLINK, SOCK_RAW, sock_type);
tools/net/ynl/lib/ynl.c
774
addr.nl_family = AF_NETLINK;
tools/perf/trace/beauty/include/linux/socket.h
223
#define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */
tools/perf/trace/beauty/include/linux/socket.h
279
#define PF_NETLINK AF_NETLINK
tools/testing/selftests/bpf/netlink_helpers.c
152
struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK };
tools/testing/selftests/bpf/netlink_helpers.c
33
rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol);
tools/testing/selftests/bpf/netlink_helpers.c
54
rth->local.nl_family = AF_NETLINK;
tools/testing/selftests/bpf/netlink_helpers.c
72
if (rth->local.nl_family != AF_NETLINK) {
tools/testing/selftests/bpf/prog_tests/sockopt_sk.c
190
fd = socket(AF_NETLINK, SOCK_RAW, 0);
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
112
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
119
nl_src.nl_family = AF_NETLINK;
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
163
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
169
nl_src.nl_family = AF_NETLINK;
tools/testing/selftests/bpf/prog_tests/test_bpf_smc.c
90
nladdr.nl_family = AF_NETLINK;
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
233
sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE);
tools/testing/selftests/bpf/progs/sockopt_sk.c
149
if (sk && sk->family == AF_NETLINK)
tools/testing/selftests/bpf/progs/sockopt_sk.c
39
if (sk && sk->family == AF_NETLINK)
tools/testing/selftests/bpf/xsk.c
399
fd = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);
tools/testing/selftests/connector/proc_filter.c
96
sa_nl.nl_family = AF_NETLINK;
tools/testing/selftests/landlock/audit.h
65
.nl_family = AF_NETLINK,
tools/testing/selftests/nci/nci_dev.c
100
local.nl_family = AF_NETLINK;
tools/testing/selftests/nci/nci_dev.c
146
nladdr.nl_family = AF_NETLINK;
tools/testing/selftests/nci/nci_dev.c
95
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
tools/testing/selftests/net/af_unix/diag_uid.c
100
.nl_family = AF_NETLINK
tools/testing/selftests/net/af_unix/diag_uid.c
139
.nl_family = AF_NETLINK
tools/testing/selftests/net/af_unix/diag_uid.c
54
self->netlink_fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);
tools/testing/selftests/net/ipsec.c
1339
snl.nl_family = AF_NETLINK;
tools/testing/selftests/net/ipsec.c
1361
if (snl.nl_family != AF_NETLINK) {
tools/testing/selftests/net/ipsec.c
203
*sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
tools/testing/selftests/net/mptcp/mptcp_diag.c
111
.nl_family = AF_NETLINK
tools/testing/selftests/net/mptcp/mptcp_diag.c
311
.nl_family = AF_NETLINK
tools/testing/selftests/net/mptcp/mptcp_diag.c
356
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);
tools/testing/selftests/net/mptcp/mptcp_diag.c
386
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
1545
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
tools/testing/selftests/net/mptcp/pm_nl_ctl.c
220
struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK };
tools/testing/selftests/net/netfilter/audit_logread.c
65
.nl_family = AF_NETLINK,
tools/testing/selftests/net/netlink-dumps.c
120
netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
tools/testing/selftests/net/netlink-dumps.c
205
netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
tools/testing/selftests/net/netlink-dumps.c
225
netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
tools/testing/selftests/net/netlink-dumps.c
241
netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1112
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
tools/testing/selftests/net/ovpn/ovpn-cli.c
1141
local.nl_family = AF_NETLINK;
tools/testing/selftests/net/ovpn/ovpn-cli.c
1163
if (local.nl_family != AF_NETLINK) {
tools/testing/selftests/net/ovpn/ovpn-cli.c
1195
nladdr.nl_family = AF_NETLINK;
tools/testing/selftests/net/tap.c
146
rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);
tools/testing/selftests/net/tap.c
89
rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);
tools/testing/selftests/net/tcp_ao/lib/netlink.c
23
*sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
tools/testing/selftests/uevent/uevent_filtering.c
106
sk_addr.nl_family = AF_NETLINK;
tools/testing/selftests/uevent/uevent_filtering.c
92
sk_fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC,
tools/testing/vsock/vsock_diag_test.c
169
.nl_family = AF_NETLINK,
tools/testing/vsock/vsock_diag_test.c
212
.nl_family = AF_NETLINK,
tools/testing/vsock/vsock_diag_test.c
261
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);