Home
last modified time | relevance | path

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

12

/external/linux-kselftest/tools/testing/selftests/net/
Dmsg_zerocopy.c335 if (domain != PF_PACKET && domain != PF_RDS) in do_setup_tx()
497 if (domain == PF_PACKET) { in do_tx()
524 if (domain == PF_PACKET || protocol == IPPROTO_RAW) { in do_tx()
578 if (domain == PF_PACKET) in do_setup_rx()
681 if (cfg_cork && (domain == PF_PACKET || type != SOCK_DGRAM)) in do_test()
795 do_test(PF_PACKET, SOCK_RAW, 0); in main()
797 do_test(PF_PACKET, SOCK_DGRAM, 0); in main()
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()
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.c104 int ret, sock = socket(PF_PACKET, SOCK_RAW, 0); in pfsocket()
382 .sll_family = PF_PACKET, in walk_tx()
399 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in walk_tx()
736 ring->ll.sll_family = PF_PACKET; in bind_ring()
Dpsock_fanout.c66 fd = socket(PF_PACKET, SOCK_RAW, 0); in sock_fanout_open()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_linux.c292 l2->fd = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM, in l2_packet_init()
312 ll.sll_family = PF_PACKET; in l2_packet_init()
385 l2->fd_br_rx = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM, in l2_packet_init_bridge()
395 ll.sll_family = PF_PACKET; in l2_packet_init_bridge()
/external/python/cpython2/Lib/plat-atheos/
DIN.py403 PF_PACKET = 17 variable
430 AF_PACKET = PF_PACKET
719 PF_PACKET = 17 variable
746 AF_PACKET = PF_PACKET
/external/bcc/examples/networking/http_filter/
Dhttp-parse-simple.py79 sock = socket.fromfd(socket_fd,socket.PF_PACKET,socket.SOCK_RAW,socket.IPPROTO_IP)
Dhttp-parse-complete.py132 sock = socket.fromfd(socket_fd,socket.PF_PACKET,socket.SOCK_RAW,socket.IPPROTO_IP)
/external/ltp/testcases/network/packet/
Dfanout01.c76 fd = SAFE_SOCKET(AF_PACKET, SOCK_RAW, PF_PACKET); in run()
/external/ltp/testcases/kernel/containers/share/
Dns_ifmove.c58 sock_fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in get_intf_index_from_name()
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c112 domain = PF_PACKET; in openInterface()
Dplugin.c323 if ((fd = socket(PF_PACKET, SOCK_RAW, 0)) < 0) { in PPPoEDevnameHook()
Dpppoe-discovery.c117 domain = PF_PACKET; in openInterface()
/external/python/cpython2/Lib/plat-linux2/
DIN.py379 PF_PACKET = 17 variable
409 AF_PACKET = PF_PACKET
/external/bcc/examples/networking/vlan_filter/
Ddata-plane-tracing.py89 sock = socket.fromfd(socket_fd,socket.PF_PACKET,socket.SOCK_RAW,socket.IPPROTO_IP)
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmp_redirector.c229 if ((sd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) < 0) in open_socket()
241 lla.sll_family = PF_PACKET; in open_socket()
/external/iputils/
Drarpd.c612 pset[0].fd = socket(PF_PACKET, SOCK_DGRAM, 0); in main()
627 pset[1].fd = socket(PF_PACKET, SOCK_DGRAM, 0); in main()
/external/wpa_supplicant_8/src/drivers/
Ddriver_wired_common.c228 common->pf_sock = socket(PF_PACKET, SOCK_DGRAM, 0); in driver_wired_init_common()
Ddriver_wired.c176 drv->common.sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_PAE)); in wired_init_sockets()
Ddriver_nl80211_monitor.c407 drv->monitor_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in nl80211_create_monitor_interface()
/external/libwebsockets/lib/core-net/
Dadopt.c502 sock.sockfd = socket(wsi->pf_packet ? PF_PACKET : in lws_create_adopt_udp2()
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c416 fd = socket(cfg_use_pf_packet ? PF_PACKET : family, in do_test()
/external/iproute2/ip/
Diplink.c1062 fd = socket(PF_PACKET, SOCK_DGRAM, 0); in get_ctl_fd()
1171 s = socket(PF_PACKET, SOCK_DGRAM, 0); in get_address()
/external/iproute2/misc/
Darpd.c759 pset[0].fd = socket(PF_PACKET, SOCK_DGRAM, 0); in main()

12