Home
last modified time | relevance | path

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

/linux/samples/bpf/
A Dxdp_router_ipv4_user.c332 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_route_table()
338 sa.nl_family = AF_NETLINK; in get_route_table()
482 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_arp_table()
488 sa.nl_family = AF_NETLINK; in get_arp_table()
544 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_route()
552 lr.nl_family = AF_NETLINK; in monitor_route()
562 sock_arp = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_route()
570 la.nl_family = AF_NETLINK; in monitor_route()
/linux/tools/perf/trace/beauty/include/linux/
A Dsocket.h193 #define AF_NETLINK 16 macro
194 #define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */
250 #define PF_NETLINK AF_NETLINK
/linux/tools/testing/vsock/
A 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/include/linux/
A Dsocket.h193 #define AF_NETLINK 16 macro
194 #define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */
250 #define PF_NETLINK AF_NETLINK
/linux/tools/accounting/
A 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/net/netlink/
A Ddiag.c58 rep->ndiag_family = AF_NETLINK; in sk_diag_fill()
243 .family = AF_NETLINK,
A Daf_netlink.c1002 if (nladdr->nl_family != AF_NETLINK) in netlink_bind()
1093 if (addr->sa_family != AF_NETLINK) in netlink_connect()
1126 nladdr->nl_family = AF_NETLINK; in netlink_getname()
1177 if (sock->sk_family != AF_NETLINK) in netlink_getsockbyfilp()
1868 if (addr->nl_family != AF_NETLINK) in netlink_sendmsg()
1983 addr->nl_family = AF_NETLINK; in netlink_recvmsg()
/linux/tools/testing/selftests/uevent/
A 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/samples/connector/
A Ducon.c145 l_local.nl_family = AF_NETLINK; in main()
/linux/tools/testing/selftests/nci/
A 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/tools/testing/selftests/net/
A 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()
A Dipsec.c161 *sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in netlink_sock()
1346 snl.nl_family = AF_NETLINK; in netlink_sock_bind()
1368 if (snl.nl_family != AF_NETLINK) { in netlink_sock_bind()
/linux/tools/bpf/bpftool/
A Dnet.c104 sa.nl_family = AF_NETLINK; in netlink_open()
106 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in netlink_open()
/linux/tools/lib/bpf/
A Dnetlink.c44 sa.nl_family = AF_NETLINK; in libbpf_netlink_open()
46 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in libbpf_netlink_open()
/linux/tools/testing/selftests/net/mptcp/
A Dpm_nl_ctl.c89 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in do_nl_req()
739 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in main()
/linux/Documentation/driver-api/
A Dconnector.rst119 l_local.nl_family = AF_NETLINK;

Completed in 41 milliseconds