/linux-6.12.1/tools/testing/selftests/net/ |
D | netlink-dumps.c | 52 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST() 72 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST() 88 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST()
|
D | tap.c | 95 rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in dev_create() 152 rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in dev_delete()
|
D | tun.c | 77 rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in tun_delete()
|
/linux-6.12.1/tools/testing/selftests/net/af_unix/ |
D | diag_uid.c | 54 self->netlink_fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); in FIXTURE_SETUP() 100 .nl_family = AF_NETLINK in send_request() 139 .nl_family = AF_NETLINK in receive_response()
|
/linux-6.12.1/samples/bpf/ |
D | xdp_router_ipv4_user.c | 267 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_route_table() 273 sa.nl_family = AF_NETLINK; in get_route_table() 403 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_arp_table() 409 sa.nl_family = AF_NETLINK; in get_arp_table() 458 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_routes_thread() 466 lr.nl_family = AF_NETLINK; in monitor_routes_thread() 477 sock_arp = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_routes_thread() 486 la.nl_family = AF_NETLINK; in monitor_routes_thread()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | netlink_helpers.c | 33 rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol); in rtnl_open_byproto() 54 rth->local.nl_family = AF_NETLINK; in rtnl_open_byproto() 72 if (rth->local.nl_family != AF_NETLINK) { in rtnl_open_byproto() 152 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in __rtnl_talk_iov()
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | sockopt_sk.c | 39 if (sk && sk->family == AF_NETLINK) in _getsockopt() 149 if (sk && sk->family == AF_NETLINK) in _setsockopt()
|
/linux-6.12.1/tools/accounting/ |
D | procacct.c | 100 fd = socket(AF_NETLINK, SOCK_RAW, protocol); in create_nl_socket() 113 local.nl_family = AF_NETLINK; in create_nl_socket() 152 nladdr.nl_family = AF_NETLINK; in send_cmd()
|
D | getdelays.c | 93 fd = socket(AF_NETLINK, SOCK_RAW, protocol); in create_nl_socket() 106 local.nl_family = AF_NETLINK; in create_nl_socket() 145 nladdr.nl_family = AF_NETLINK; in send_cmd()
|
/linux-6.12.1/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 207 #define AF_NETLINK 16 macro 208 #define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */ 264 #define PF_NETLINK AF_NETLINK
|
/linux-6.12.1/include/linux/ |
D | socket.h | 207 #define AF_NETLINK 16 macro 208 #define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */ 264 #define PF_NETLINK AF_NETLINK
|
/linux-6.12.1/tools/testing/vsock/ |
D | vsock_diag_test.c | 169 .nl_family = AF_NETLINK, in send_req() 212 .nl_family = AF_NETLINK, in recv_resp() 261 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); in read_vsock_stat()
|
/linux-6.12.1/net/netlink/ |
D | diag.c | 58 rep->ndiag_family = AF_NETLINK; in sk_diag_fill() 245 .family = AF_NETLINK,
|
D | af_netlink.c | 995 if (nladdr->nl_family != AF_NETLINK) in netlink_bind() 1088 if (addr->sa_family != AF_NETLINK) in netlink_connect() 1123 nladdr->nl_family = AF_NETLINK; in netlink_getname() 1177 if (sock->sk_family != AF_NETLINK) in netlink_getsockbyfilp() 1832 if (addr->nl_family != AF_NETLINK) in netlink_sendmsg() 1947 addr->nl_family = AF_NETLINK; in netlink_recvmsg()
|
/linux-6.12.1/tools/testing/selftests/uevent/ |
D | uevent_filtering.c | 92 sk_fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, in uevent_listener() 106 sk_addr.nl_family = AF_NETLINK; in uevent_listener()
|
/linux-6.12.1/tools/testing/selftests/net/netfilter/ |
D | audit_logread.c | 65 .nl_family = AF_NETLINK, in audit_send()
|
/linux-6.12.1/samples/connector/ |
D | ucon.c | 145 l_local.nl_family = AF_NETLINK; in main()
|
/linux-6.12.1/tools/testing/selftests/nci/ |
D | nci_dev.c | 95 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in create_nl_socket() 100 local.nl_family = AF_NETLINK; in create_nl_socket() 146 nladdr.nl_family = AF_NETLINK; in send_cmd_mt_nla()
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_sk.c | 190 fd = socket(AF_NETLINK, SOCK_RAW, 0); in getsetsockopt()
|
D | xfrm_info.c | 233 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in setup_xfrmi_external_dev()
|
/linux-6.12.1/Documentation/userspace-api/netlink/ |
D | intro.rst | 29 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); 41 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); 54 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); 563 1. AF_NETLINK is a bona fide socket protocol family 564 2. AF_NETLINK's documentation refers to what comes after its own 566 3. Generic Netlink is a family for AF_NETLINK (struct genlmsghdr follows
|
/linux-6.12.1/tools/testing/selftests/connector/ |
D | proc_filter.c | 96 sa_nl.nl_family = AF_NETLINK; in register_proc_netlink()
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | net.c | 117 sa.nl_family = AF_NETLINK; in netlink_open() 119 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in netlink_open()
|
/linux-6.12.1/tools/net/ynl/lib/ |
D | ynl.c | 678 ys->socket = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in ynl_sock_create() 696 addr.nl_family = AF_NETLINK; in ynl_sock_create()
|
/linux-6.12.1/tools/lib/bpf/ |
D | netlink.c | 60 sa.nl_family = AF_NETLINK; in libbpf_netlink_open() 62 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in libbpf_netlink_open()
|