Home
last modified time | relevance | path

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

12

/external/android-clat/
Dring.c42 if (setsockopt(packetsock, SOL_PACKET, PACKET_VERSION, (void *)&ver, sizeof(ver))) { in ring_create()
48 if (setsockopt(packetsock, SOL_PACKET, PACKET_LOSS, (void *)&on, sizeof(on))) { in ring_create()
64 if (setsockopt(packetsock, SOL_PACKET, PACKET_RX_RING, &req, sizeof(req)) < 0) { in ring_create()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_fanout.c87 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT, &val, sizeof(val))) { in sock_fanout_open()
109 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &bpf_prog, in sock_fanout_set_cbpf()
121 if (getsockopt(fd, SOL_PACKET, PACKET_FANOUT, in sock_fanout_getopts()
165 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &pfd, sizeof(pfd))) { in sock_fanout_set_ebpf()
187 if (setsockopt(fd, SOL_PACKET, PACKET_VERSION, (void *) &val, in sock_fanout_open_ring()
192 if (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (void *) &req, in sock_fanout_open_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.c110 ret = setsockopt(sock, SOL_PACKET, PACKET_VERSION, &ver, sizeof(ver)); in pfsocket()
349 ret = setsockopt(sock, SOL_PACKET, PACKET_LOSS, (void *) &discard, in __v1_v2_set_packet_loss_discard()
685 ret = setsockopt(sock, SOL_PACKET, type, &ring->req, in setup_ring()
691 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()
/external/strace/xlat/
Dsocketlayers.h120 #if defined(SOL_PACKET) || (defined(HAVE_DECL_SOL_PACKET) && HAVE_DECL_SOL_PACKET)
122 static_assert((SOL_PACKET) == (263), "SOL_PACKET != 263");
125 # define SOL_PACKET 263
301 XLAT(SOL_PACKET),
Dsocketlayers.in20 SOL_PACKET 263
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt02.c87 TEST(setsockopt(sk, SOL_PACKET, PACKET_VERSION, &ver, sizeof(ver))); in create_skbuf()
93 return setsockopt(sk, SOL_PACKET, PACKET_RX_RING, &req, sizeof(req)); in create_skbuf()
/external/strace/tests/
Dnet-tpacket_req.c11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in set_tpacket_req()
Dnet-tpacket_stats.c19 long rc = getsockopt(-1, SOL_PACKET, PACKET_STATISTICS, tpstats, len); in get_tpacket_stats()
Dnet-packet_mreq.c11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in packet_mreq_membership()
/external/strace/tests-m32/
Dnet-tpacket_req.c11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in set_tpacket_req()
Dnet-tpacket_stats.c19 long rc = getsockopt(-1, SOL_PACKET, PACKET_STATISTICS, tpstats, len); in get_tpacket_stats()
Dnet-packet_mreq.c11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in packet_mreq_membership()
/external/strace/tests-mx32/
Dnet-tpacket_req.c11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in set_tpacket_req()
Dnet-tpacket_stats.c19 long rc = getsockopt(-1, SOL_PACKET, PACKET_STATISTICS, tpstats, len); in get_tpacket_stats()
Dnet-packet_mreq.c11 long rc = setsockopt(-1, SOL_PACKET, optname, optval, len); in packet_mreq_membership()
/external/ltp/testcases/network/packet/
Dfanout01.c92 setsockopt(fd, SOL_PACKET, PACKET_FANOUT, in run()
/external/libpcap/
Dpcap-linux.c1314 if (getsockopt(handle->fd, SOL_PACKET, PACKET_STATISTICS, in pcap_stats_linux()
2233 if (getsockopt(sock_fd, SOL_PACKET, PACKET_RESERVE, &tp_reserve, in set_dlt_list_cooked()
2533 if (setsockopt(sock_fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, in activate_pf_packet()
2546 if (setsockopt(sock_fd, SOL_PACKET, PACKET_AUXDATA, &val, in activate_pf_packet()
2718 if (getsockopt(handle->fd, SOL_PACKET, PACKET_HDRLEN, &val, &len) < 0) { in init_tpacket()
2754 if (setsockopt(handle->fd, SOL_PACKET, PACKET_VERSION, &val, in init_tpacket()
2906 if (setsockopt(handle->fd, SOL_PACKET, PACKET_RESERVE, in create_ring()
3168 if (setsockopt(handle->fd, SOL_PACKET, PACKET_TIMESTAMP, in create_ring()
3215 if (setsockopt(handle->fd, SOL_PACKET, PACKET_RX_RING, in create_ring()
3294 (void)setsockopt(handle->fd, SOL_PACKET, PACKET_RX_RING, in destroy_ring()
/external/strace/
Dnet.c510 case SOL_PACKET: in print_sockopt_fd_level_name()
800 case SOL_PACKET: in print_getsockopt()
1041 case SOL_PACKET: in print_setsockopt()
/external/wpa_supplicant_8/src/drivers/
Ddriver_wired_common.c154 if (setsockopt(sock, SOL_PACKET, in wired_multicast_membership()
/external/scapy/scapy/arch/
Dlinux.py74 SOL_PACKET = 263 variable
173 s.setsockopt(SOL_PACKET, cmd, mreq)
/external/python/cpython2/Lib/plat-linux2/
DIN.py422 SOL_PACKET = 263 variable
/external/python/cpython2/Lib/plat-atheos/
DIN.py440 SOL_PACKET = 263 variable
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c230 (cm->cmsg_level == SOL_PACKET && in __recv_errmsg_cmsg()

12