/Linux-v6.1/tools/testing/selftests/net/ |
D | psock_fanout.c | 94 err = setsockopt(fd, SOL_PACKET, PACKET_FANOUT, &args, in sock_fanout_open() 98 err = setsockopt(fd, SOL_PACKET, PACKET_FANOUT, &val, in sock_fanout_open() 123 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &bpf_prog, in sock_fanout_set_cbpf() 135 if (getsockopt(fd, SOL_PACKET, PACKET_FANOUT, in sock_fanout_getopts() 179 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &pfd, sizeof(pfd))) { in sock_fanout_set_ebpf() 201 if (setsockopt(fd, SOL_PACKET, PACKET_VERSION, (void *) &val, in sock_fanout_open_ring() 206 if (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (void *) &req, in sock_fanout_open_ring()
|
D | toeplitz.c | 270 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()
|
D | psock_tpacket.c | 107 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()
|
D | psock_snd.c | 231 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()
|
D | txring_overwrite.c | 110 if (setsockopt(fdt, SOL_PACKET, PACKET_TX_RING, in setup_tx()
|
D | msg_zerocopy.c | 420 (cm->cmsg_level == SOL_PACKET && cm->cmsg_type == PACKET_TX_TIMESTAMP))) in do_recv_completion()
|
D | txtimestamp.c | 325 (cm->cmsg_level == SOL_PACKET && in __recv_errmsg_cmsg()
|
/Linux-v6.1/Documentation/networking/ |
D | packet_mmap.rst | 193 setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (void *) &req, sizeof(req)) 197 setsockopt(fd, SOL_PACKET, PACKET_TX_RING, (void *) &req, sizeof(req)) 422 setsockopt(fd, SOL_PACKET, PACKET_RX_RING, &foo, sizeof(foo)); 423 setsockopt(fd, SOL_PACKET, PACKET_TX_RING, &bar, sizeof(bar)); 546 setsockopt(fd, SOL_PACKET, PACKET_VERSION, &val, sizeof(val)); 547 getsockopt(fd, SOL_PACKET, PACKET_VERSION, &val, sizeof(val)); 673 err = setsockopt(fd, SOL_PACKET, PACKET_FANOUT, 838 err = setsockopt(fd, SOL_PACKET, PACKET_VERSION, &v, sizeof(v)); 852 err = setsockopt(fd, SOL_PACKET, PACKET_RX_RING, &ring->req, 989 err = getsockopt(fd, SOL_PACKET, PACKET_STATISTICS, &stats, &len); [all …]
|
/Linux-v6.1/arch/um/drivers/ |
D | vector_user.c | 484 SOL_PACKET, PACKET_QDISC_BYPASS, in uml_raw_enable_qdisc_bypass() 496 SOL_PACKET, PACKET_VNET_HDR, in uml_raw_enable_vnet_headers()
|
/Linux-v6.1/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 355 #define SOL_PACKET 263 macro
|
/Linux-v6.1/include/linux/ |
D | socket.h | 355 #define SOL_PACKET 263 macro
|
/Linux-v6.1/net/packet/ |
D | af_packet.c | 3425 SOL_PACKET, PACKET_TX_TIMESTAMP); in packet_recvmsg() 3537 put_cmsg(msg, SOL_PACKET, PACKET_AUXDATA, sizeof(aux), &aux); in packet_recvmsg() 3759 if (level != SOL_PACKET) in packet_setsockopt() 4029 if (level != SOL_PACKET) in packet_getsockopt()
|
/Linux-v6.1/drivers/net/ |
D | tun.c | 2607 SOL_PACKET, TUN_TX_TIMESTAMP); in tun_recvmsg()
|