Home
last modified time | relevance | path

Searched refs:AF_NETLINK (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v6.6/tools/testing/selftests/net/af_unix/
Ddiag_uid.c54 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-v6.6/samples/bpf/
Dxdp_router_ipv4_user.c267 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-v6.6/tools/testing/selftests/bpf/progs/
Dsockopt_sk.c39 if (sk && sk->family == AF_NETLINK) in _getsockopt()
149 if (sk && sk->family == AF_NETLINK) in _setsockopt()
/Linux-v6.6/tools/accounting/
Dprocacct.c100 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()
Dgetdelays.c93 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-v6.6/include/linux/
Dsocket.h206 #define AF_NETLINK 16 macro
207 #define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */
263 #define PF_NETLINK AF_NETLINK
/Linux-v6.6/tools/testing/vsock/
Dvsock_diag_test.c167 .nl_family = AF_NETLINK, in send_req()
210 .nl_family = AF_NETLINK, in recv_resp()
259 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); in read_vsock_stat()
/Linux-v6.6/tools/perf/trace/beauty/include/linux/
Dsocket.h206 #define AF_NETLINK 16 macro
207 #define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */
263 #define PF_NETLINK AF_NETLINK
/Linux-v6.6/net/netlink/
Ddiag.c58 rep->ndiag_family = AF_NETLINK; in sk_diag_fill()
244 .family = AF_NETLINK,
Daf_netlink.c1018 if (nladdr->nl_family != AF_NETLINK) in netlink_bind()
1111 if (addr->sa_family != AF_NETLINK) in netlink_connect()
1146 nladdr->nl_family = AF_NETLINK; in netlink_getname()
1200 if (sock->sk_family != AF_NETLINK) in netlink_getsockbyfilp()
1856 if (addr->nl_family != AF_NETLINK) in netlink_sendmsg()
1971 addr->nl_family = AF_NETLINK; in netlink_recvmsg()
/Linux-v6.6/tools/testing/selftests/uevent/
Duevent_filtering.c92 sk_fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, in uevent_listener()
106 sk_addr.nl_family = AF_NETLINK; in uevent_listener()
/Linux-v6.6/tools/testing/selftests/netfilter/
Daudit_logread.c65 .nl_family = AF_NETLINK, in audit_send()
/Linux-v6.6/samples/connector/
Ducon.c145 l_local.nl_family = AF_NETLINK; in main()
/Linux-v6.6/tools/testing/selftests/net/
Dtun.c77 rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in tun_delete()
Dtap.c95 rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in dev_create()
152 rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in dev_delete()
Dudpgso.c360 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in set_route_mtu()
373 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in set_route_mtu()
/Linux-v6.6/tools/testing/selftests/nci/
Dnci_dev.c95 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-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsockopt_sk.c190 fd = socket(AF_NETLINK, SOCK_RAW, 0); in getsetsockopt()
Dxfrm_info.c233 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in setup_xfrmi_external_dev()
/Linux-v6.6/Documentation/userspace-api/netlink/
Dintro.rst29 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);
559 1. AF_NETLINK is a bona fide socket protocol family
560 2. AF_NETLINK's documentation refers to what comes after its own
562 3. Generic Netlink is a family for AF_NETLINK (struct genlmsghdr follows
/Linux-v6.6/tools/testing/selftests/connector/
Dproc_filter.c96 sa_nl.nl_family = AF_NETLINK; in register_proc_netlink()
/Linux-v6.6/tools/bpf/bpftool/
Dnet.c111 sa.nl_family = AF_NETLINK; in netlink_open()
113 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in netlink_open()
/Linux-v6.6/tools/net/ynl/lib/
Dynl.py279 with socket.socket(socket.AF_NETLINK, socket.SOCK_RAW, Netlink.NETLINK_GENERIC) as sock:
421 self.sock = socket.socket(socket.AF_NETLINK, socket.SOCK_RAW, self.nlproto.proto_num)
/Linux-v6.6/tools/lib/bpf/
Dnetlink.c60 sa.nl_family = AF_NETLINK; in libbpf_netlink_open()
62 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in libbpf_netlink_open()
/Linux-v6.6/Documentation/driver-api/
Dconnector.rst119 l_local.nl_family = AF_NETLINK;

12