Home
last modified time | relevance | path

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

/tools/testing/selftests/net/
Dtxring_overwrite.c79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()
92 fdt = socket(PF_PACKET, SOCK_RAW, 0); in setup_tx()
Dmsg_zerocopy.c337 if (domain != PF_PACKET && domain != PF_RDS) in do_setup_tx()
500 if (domain == PF_PACKET) { in do_tx()
527 if (domain == PF_PACKET || protocol == IPPROTO_RAW) { in do_tx()
584 if (domain == PF_PACKET) in do_setup_rx()
687 if (cfg_cork && (domain == PF_PACKET || type != SOCK_DGRAM)) in do_test()
804 do_test(PF_PACKET, SOCK_RAW, 0); in main()
806 do_test(PF_PACKET, SOCK_DGRAM, 0); in main()
Dpsock_snd.c223 fd = socket(PF_PACKET, cfg_use_dgram ? SOCK_DGRAM : SOCK_RAW, 0); in do_tx()
295 fd = socket(PF_PACKET, SOCK_RAW, 0); in setup_sniffer()
Dpsock_tpacket.c103 int ret, sock = socket(PF_PACKET, SOCK_RAW, 0); in pfsocket()
380 .sll_family = PF_PACKET, in walk_tx()
397 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in walk_tx()
734 ring->ll.sll_family = PF_PACKET; in bind_ring()
Dcsum.c378 fd = socket(PF_PACKET, SOCK_RAW, 0); in open_packet()
550 fd = socket(PF_PACKET, SOCK_DGRAM, 0); in recv_prepare_packet()
Dpsock_fanout.c70 fd = socket(PF_PACKET, SOCK_RAW, 0); in sock_fanout_open()
Dtoeplitz.c346 fd = socket(PF_PACKET, SOCK_DGRAM, 0); in create_ring()
Dgro.c809 txfd = socket(PF_PACKET, SOCK_RAW, IPPROTO_RAW); in gro_sender()
912 rxfd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_NONE)); in gro_receiver()
Dtxtimestamp.c515 fd = socket(cfg_use_pf_packet ? PF_PACKET : family, in do_test()
/tools/perf/trace/beauty/include/linux/
Dsocket.h265 #define PF_PACKET AF_PACKET macro