Home
last modified time | relevance | path

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

/tools/testing/selftests/net/
Dpsock_fanout.c93 err = setsockopt(fd, SOL_PACKET, PACKET_FANOUT, &args, in sock_fanout_open()
97 err = setsockopt(fd, SOL_PACKET, PACKET_FANOUT, &val, in sock_fanout_open()
122 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &bpf_prog, in sock_fanout_set_cbpf()
134 if (getsockopt(fd, SOL_PACKET, PACKET_FANOUT, in sock_fanout_getopts()
178 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &pfd, sizeof(pfd))) { in sock_fanout_set_ebpf()
200 if (setsockopt(fd, SOL_PACKET, PACKET_VERSION, (void *) &val, in sock_fanout_open_ring()
205 if (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (void *) &req, in sock_fanout_open_ring()
Dtoeplitz.c270 if (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, &req3, sizeof(req3))) in setup_ring()
349 if (setsockopt(fd, SOL_PACKET, PACKET_VERSION, &val, sizeof(val))) in create_ring()
366 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT, &args, sizeof(args))) { in create_ring()
373 setsockopt(fd, SOL_PACKET, PACKET_FANOUT, in create_ring()
Dpsock_snd.c231 setsockopt(fd, SOL_PACKET, PACKET_QDISC_BYPASS, &one, sizeof(one))) in do_tx()
235 setsockopt(fd, SOL_PACKET, PACKET_VNET_HDR, &one, sizeof(one))) in do_tx()
Dpsock_tpacket.c107 ret = setsockopt(sock, SOL_PACKET, PACKET_VERSION, &ver, sizeof(ver)); in pfsocket()
346 ret = setsockopt(sock, SOL_PACKET, PACKET_LOSS, (void *) &discard, in __v1_v2_set_packet_loss_discard()
681 ret = setsockopt(sock, SOL_PACKET, type, &ring->req, in setup_ring()
687 ret = setsockopt(sock, SOL_PACKET, type, &ring->req3, in setup_ring()
Dtxring_overwrite.c110 if (setsockopt(fdt, SOL_PACKET, PACKET_TX_RING, in setup_tx()
Dmsg_zerocopy.c420 (cm->cmsg_level == SOL_PACKET && cm->cmsg_type == PACKET_TX_TIMESTAMP))) in do_recv_completion()
Dtxtimestamp.c325 (cm->cmsg_level == SOL_PACKET && in __recv_errmsg_cmsg()
/tools/perf/trace/beauty/include/linux/
Dsocket.h346 #define SOL_PACKET 263 macro