Home
last modified time | relevance | path

Searched refs:AF_PACKET (Results 1 – 25 of 80) sorted by relevance

1234

/external/libpcap/
Dfad-getad.c63 #if (defined(linux) || defined(__Lynx__)) && defined(AF_PACKET)
123 #if (defined(linux) || defined(__Lynx__)) && defined(AF_PACKET) in get_sa_len()
124 case AF_PACKET: in get_sa_len()
/external/strace/xlat/
Daddrfams.h125 #if defined(AF_PACKET) || (defined(HAVE_DECL_AF_PACKET) && HAVE_DECL_AF_PACKET)
127 static_assert((AF_PACKET) == (17), "AF_PACKET != 17");
130 # define AF_PACKET 17
344 [AF_PACKET] = XLAT(AF_PACKET),
Daddrfams.in19 AF_PACKET 17
/external/ltp/testcases/network/packet/
Dfanout01.c76 fd = SAFE_SOCKET(AF_PACKET, SOCK_RAW, PF_PACKET); in run()
86 addr.sll_family = AF_PACKET; in run()
/external/iproute2/ip/
Dipmaddr.c96 struct ma_info m = { .addr.family = AF_PACKET }; in read_dev_mcast()
199 if (list->addr.family == AF_PACKET) { in print_maddr()
263 if (!filter.family || filter.family == AF_PACKET) in multiaddr_list()
Dipaddress.c957 (!pfilter->family || pfilter->family == AF_PACKET) && in print_linkinfo_brief()
1009 if (pfilter->family == AF_PACKET) { in print_linkinfo_brief()
1023 if (pfilter->family == AF_PACKET) { in print_linkinfo_brief()
1079 (!filter.family || filter.family == AF_PACKET) && in print_linkinfo()
1186 if (!filter.family || filter.family == AF_PACKET || show_details) { in print_linkinfo()
1926 (filter.family == AF_UNSPEC || filter.family == AF_PACKET)) in ipaddr_filter()
2071 if (filter.family == AF_PACKET) { in ipaddr_list_flush_or_save()
2196 if (filter.family != AF_PACKET) { in ipaddr_list_flush_or_save()
2207 if (filter.family != AF_PACKET) in ipaddr_list_flush_or_save()
2218 if (filter.family != AF_PACKET) in ipaddr_list_flush_or_save()
[all …]
Drtmon.c107 family = AF_PACKET; in main()
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv6_sender.c179 if ((sock_fd = socket(AF_PACKET, SOCK_DGRAM, 0)) < 0) in specify_hw_addr()
182 lladdr_p->sll_family = AF_PACKET; /* Always AF_PACKET */ in specify_hw_addr()
213 lladdr_p->sll_family = AF_PACKET; /* Always AF_PACKET */ in calc_hd_mcastaddr()
722 sock_fd = socket(AF_PACKET, SOCK_DGRAM, htons(ETH_P_IPV6)); in send_packets()
Dns-icmpv4_sender.c318 if ((sock_fd = socket(AF_PACKET, SOCK_DGRAM, 0)) < 0) in complete_eth_addrs()
322 fake_p->saddr_ll.sll_family = AF_PACKET; /* Always AF_PACKET */ in complete_eth_addrs()
552 sock_fd = socket(AF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in send_packets()
/external/libwebsockets/lib/plat/unix/
Dunix-sockets.c209 #if defined(AF_PACKET) in lws_interface_to_sa()
210 case AF_PACKET: in lws_interface_to_sa()
324 sll.sll_family = AF_PACKET; in lws_plat_rawudp_broadcast()
/external/iproute2/lib/
Dutils.c485 if (family == AF_PACKET) { in get_addr_1()
493 addr->family = AF_PACKET; in get_addr_1()
643 if (family == AF_PACKET) { in get_prefix()
833 case AF_PACKET: in rt_addr_n2a_r()
858 family = AF_PACKET; in read_family()
876 if (family == AF_PACKET) in family_name()
/external/strace/tests-mx32/
Dnetlink_sock_diag.c331 .sdiag_family = AF_PACKET, in test_packet_diag_req()
338 TEST_SOCK_DIAG(fd, nlh0, AF_PACKET, in test_packet_diag_req()
352 .pdiag_family = AF_PACKET, in test_packet_diag_msg()
359 TEST_SOCK_DIAG(fd, nlh0, AF_PACKET, in test_packet_diag_msg()
Dnlattr_packet_diag_msg.c53 .pdiag_family = AF_PACKET, in init_packet_diag_msg()
/external/strace/tests-m32/
Dnetlink_sock_diag.c331 .sdiag_family = AF_PACKET, in test_packet_diag_req()
338 TEST_SOCK_DIAG(fd, nlh0, AF_PACKET, in test_packet_diag_req()
352 .pdiag_family = AF_PACKET, in test_packet_diag_msg()
359 TEST_SOCK_DIAG(fd, nlh0, AF_PACKET, in test_packet_diag_msg()
Dnlattr_packet_diag_msg.c53 .pdiag_family = AF_PACKET, in init_packet_diag_msg()
/external/strace/tests/
Dnetlink_sock_diag.c331 .sdiag_family = AF_PACKET, in test_packet_diag_req()
338 TEST_SOCK_DIAG(fd, nlh0, AF_PACKET, in test_packet_diag_req()
352 .pdiag_family = AF_PACKET, in test_packet_diag_msg()
359 TEST_SOCK_DIAG(fd, nlh0, AF_PACKET, in test_packet_diag_msg()
Dnlattr_packet_diag_msg.c53 .pdiag_family = AF_PACKET, in init_packet_diag_msg()
/external/strace/
Dnetlink_sock_diag.c61 [AF_PACKET] = { decode_packet_diag_req, decode_packet_diag_msg },
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt02.c86 sk = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in create_skbuf()
/external/scapy/scapy/arch/
Dlinux.py401 self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type))
415 self.outs = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type))
496 self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type))
561 self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type))
/external/android-clat/
Dring.c35 int packetsock = socket(AF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in ring_create()
/external/toybox/toys/pending/
Darping.c208 TT.sockfd = xsocket(AF_PACKET, SOCK_DGRAM, 0); in arping_main()
258 src_pk.sll_family = AF_PACKET; in arping_main()
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c166 sa.sll_family = AF_PACKET; in openInterface()
/external/iproute2/misc/
Dss.c209 .families = (1 << AF_PACKET),
213 .families = (1 << AF_PACKET),
238 [AF_PACKET] = {
820 case AF_PACKET: in sock_state_print()
1145 if (s->local.family == AF_PACKET) in run_ssfilter()
1545 if (fam == AF_PACKET || strncmp(addr, "link:", 5) == 0) { in parse_hostcond()
1546 a.addr.family = AF_PACKET; in parse_hostcond()
1568 fam = AF_PACKET; in parse_hostcond()
3277 s->local.family = s->remote.family = AF_PACKET; in packet_stats_print()
3448 req.r.sdiag_family = AF_PACKET; in packet_show_netlink()
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Dtxring_overwrite.c96 laddr.sll_family = AF_PACKET; in setup_tx()

1234