Home
last modified time | relevance | path

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

/Linux-v5.10/samples/bpf/
Dxdp_router_ipv4_user.c328 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_route_table()
334 sa.nl_family = AF_NETLINK; in get_route_table()
467 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_arp_table()
473 sa.nl_family = AF_NETLINK; in get_arp_table()
529 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_route()
537 lr.nl_family = AF_NETLINK; in monitor_route()
547 sock_arp = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_route()
555 la.nl_family = AF_NETLINK; in monitor_route()
/Linux-v5.10/include/linux/
Dsocket.h193 #define AF_NETLINK 16 macro
194 #define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */
247 #define PF_NETLINK AF_NETLINK
/Linux-v5.10/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-v5.10/tools/perf/trace/beauty/include/linux/
Dsocket.h193 #define AF_NETLINK 16 macro
194 #define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */
247 #define PF_NETLINK AF_NETLINK
/Linux-v5.10/net/netlink/
Ddiag.c58 rep->ndiag_family = AF_NETLINK; in sk_diag_fill()
243 .family = AF_NETLINK,
Daf_netlink.c989 if (nladdr->nl_family != AF_NETLINK) in netlink_bind()
1079 if (addr->sa_family != AF_NETLINK) in netlink_connect()
1111 nladdr->nl_family = AF_NETLINK; in netlink_getname()
1162 if (sock->sk_family != AF_NETLINK) in netlink_getsockbyfilp()
1867 if (addr->nl_family != AF_NETLINK) in netlink_sendmsg()
1981 addr->nl_family = AF_NETLINK; in netlink_recvmsg()
/Linux-v5.10/tools/accounting/
Dgetdelays.c94 fd = socket(AF_NETLINK, SOCK_RAW, protocol); in create_nl_socket()
107 local.nl_family = AF_NETLINK; in create_nl_socket()
146 nladdr.nl_family = AF_NETLINK; in send_cmd()
/Linux-v5.10/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-v5.10/tools/lib/bpf/
Dnetlink.c41 sa.nl_family = AF_NETLINK; in libbpf_netlink_open()
43 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in libbpf_netlink_open()
/Linux-v5.10/samples/connector/
Ducon.c145 l_local.nl_family = AF_NETLINK; in main()
/Linux-v5.10/tools/testing/selftests/net/
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()
Dipsec.c161 *sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in netlink_sock()
1343 snl.nl_family = AF_NETLINK; in netlink_sock_bind()
1365 if (snl.nl_family != AF_NETLINK) { in netlink_sock_bind()
/Linux-v5.10/tools/bpf/bpftool/
Dnet.c105 sa.nl_family = AF_NETLINK; in netlink_open()
107 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in netlink_open()
/Linux-v5.10/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c88 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in do_nl_req()
594 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in main()
/Linux-v5.10/Documentation/driver-api/
Dconnector.rst119 l_local.nl_family = AF_NETLINK;