Home
last modified time | relevance | path

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

/linux-6.12.1/samples/bpf/
Dxdp_router_ipv4_user.c455 int sock, sock_arp, nll; in monitor_routes_thread() local
477 sock_arp = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_routes_thread()
478 if (sock_arp < 0) { in monitor_routes_thread()
484 fcntl(sock_arp, F_SETFL, O_NONBLOCK); in monitor_routes_thread()
488 if (bind(sock_arp, (struct sockaddr *)&la, sizeof(la)) < 0) { in monitor_routes_thread()
493 fds_arp.fd = sock_arp; in monitor_routes_thread()
523 nll = recv_msg(la, sock_arp); in monitor_routes_thread()
538 close(sock_arp); in monitor_routes_thread()