/external/iptables/iptables/ |
D | nft-arp.c | 147 if (fw->arp.iniface[0] != '\0') { in nft_arp_add() 148 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_VIA_IN); in nft_arp_add() 149 add_iniface(r, fw->arp.iniface, op); in nft_arp_add() 152 if (fw->arp.outiface[0] != '\0') { in nft_arp_add() 153 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_VIA_OUT); in nft_arp_add() 154 add_outiface(r, fw->arp.outiface, op); in nft_arp_add() 157 if (fw->arp.arhrd != 0) { in nft_arp_add() 158 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_ARPHRD); in nft_arp_add() 161 add_cmp_u16(r, fw->arp.arhrd, op); in nft_arp_add() 164 if (fw->arp.arpro != 0) { in nft_arp_add() [all …]
|
D | xtables-arp.c | 878 cs->fw.arp.src.s_addr = saddrs[i].s_addr; in append_entry() 880 cs->fw.arp.tgt.s_addr = daddrs[j].s_addr; in append_entry() 903 cs->fw.arp.src.s_addr = saddr->s_addr; in replace_entry() 904 cs->fw.arp.tgt.s_addr = daddr->s_addr; in replace_entry() 923 cs->fw.arp.src.s_addr = saddrs[i].s_addr; in delete_entry() 925 cs->fw.arp.tgt.s_addr = daddrs[j].s_addr; in delete_entry() 1093 set_option(&options, OPT_S_IP, &cs.fw.arp.invflags, in do_commandarp() 1100 set_option(&options, OPT_D_IP, &cs.fw.arp.invflags, in do_commandarp() 1107 set_option(&options, OPT_S_MAC, &cs.fw.arp.invflags, in do_commandarp() 1110 cs.fw.arp.src_devaddr.addr, cs.fw.arp.src_devaddr.mask)) in do_commandarp() [all …]
|
D | Makefile.am | 43 nft-shared.c nft-ipv4.c nft-ipv6.c nft-arp.c \ 44 xtables-arp-standalone.c xtables-arp.c \
|
/external/u-boot/net/ |
D | arp.c | 56 struct arp_hdr *arp; in arp_raw_request() local 66 arp = (struct arp_hdr *)pkt; in arp_raw_request() 68 arp->ar_hrd = htons(ARP_ETHER); in arp_raw_request() 69 arp->ar_pro = htons(PROT_IP); in arp_raw_request() 70 arp->ar_hln = ARP_HLEN; in arp_raw_request() 71 arp->ar_pln = ARP_PLEN; in arp_raw_request() 72 arp->ar_op = htons(ARPOP_REQUEST); in arp_raw_request() 74 memcpy(&arp->ar_sha, net_ethaddr, ARP_HLEN); /* source ET addr */ in arp_raw_request() 75 net_write_ip(&arp->ar_spa, source_ip); /* source IP addr */ in arp_raw_request() 76 memcpy(&arp->ar_tha, target_ethaddr, ARP_HLEN); /* target ET addr */ in arp_raw_request() [all …]
|
D | rarp.c | 29 struct arp_hdr *arp; in rarp_receive() local 32 arp = (struct arp_hdr *)ip; in rarp_receive() 38 if ((ntohs(arp->ar_op) != RARPOP_REPLY) || in rarp_receive() 39 (ntohs(arp->ar_hrd) != ARP_ETHER) || in rarp_receive() 40 (ntohs(arp->ar_pro) != PROT_IP) || in rarp_receive() 41 (arp->ar_hln != 6) || (arp->ar_pln != 4)) { in rarp_receive() 44 net_copy_ip(&net_ip, &arp->ar_data[16]); in rarp_receive() 46 net_copy_ip(&net_server_ip, &arp->ar_data[6]); in rarp_receive() 47 memcpy(net_server_ethaddr, &arp->ar_data[0], 6); in rarp_receive()
|
D | link_local.c | 210 void link_local_receive_arp(struct arp_hdr *arp, int len) in link_local_receive_arp() argument 251 eth_get_name(), ntohs(arp->ar_pro), in link_local_receive_arp() 252 ntohs(arp->ar_op)); in link_local_receive_arp() 254 &arp->ar_sha, in link_local_receive_arp() 255 &arp->ar_spa); in link_local_receive_arp() 257 &arp->ar_tha, in link_local_receive_arp() 258 &arp->ar_tpa); in link_local_receive_arp() 260 if (arp->ar_op != htons(ARPOP_REQUEST) && in link_local_receive_arp() 261 arp->ar_op != htons(ARPOP_REPLY)) { in link_local_receive_arp() 269 if (memcmp(&arp->ar_spa, &ip, ARP_PLEN) == 0 && in link_local_receive_arp() [all …]
|
D | link_local.h | 20 void link_local_receive_arp(struct arp_hdr *arp, int len);
|
/external/u-boot/drivers/net/ |
D | sandbox-raw.c | 51 struct arp_hdr *arp = packet + ETHER_HDR_SIZE; in sb_eth_raw_send() local 57 arp_ip = net_read_ip(&arp->ar_tpa); in sb_eth_raw_send() 75 struct arp_hdr *arp = (void *)net_rx_packets[0] + in sb_eth_raw_recv() local 87 arp->ar_hrd = htons(ARP_ETHER); in sb_eth_raw_recv() 88 arp->ar_pro = htons(PROT_IP); in sb_eth_raw_recv() 89 arp->ar_hln = ARP_HLEN; in sb_eth_raw_recv() 90 arp->ar_pln = ARP_PLEN; in sb_eth_raw_recv() 91 arp->ar_op = htons(ARPOP_REPLY); in sb_eth_raw_recv() 93 memset(&arp->ar_sha, 0x01, ARP_HLEN); in sb_eth_raw_recv() 95 net_write_ip(&arp->ar_spa, arp_ip); in sb_eth_raw_recv() [all …]
|
D | sandbox.c | 81 struct arp_hdr *arp = packet + ETHER_HDR_SIZE; in sb_eth_send() local 83 if (ntohs(arp->ar_op) == ARPOP_REQUEST) { in sb_eth_send() 88 priv->fake_host_ipaddr = net_read_ip(&arp->ar_tpa); in sb_eth_send() 106 memcpy(&arp_recv->ar_tha, &arp->ar_sha, ARP_HLEN); in sb_eth_send() 107 net_copy_ip(&arp_recv->ar_tpa, &arp->ar_spa); in sb_eth_send()
|
/external/bcc/tests/python/ |
D | test_xlate1.c | 27 case ETH_P_ARP: goto arp; in on_packet() 37 case ETH_P_ARP: goto arp; in on_packet() 42 arp: { in on_packet() 43 struct arp_t *arp = cursor_advance(cursor, sizeof(*arp)); in on_packet() local 44 orig_dip = arp->tpa; in on_packet() 45 orig_sip = arp->spa; in on_packet() 50 arp->tpa = xleaf.xdip; in on_packet() 51 arp->spa = xleaf.xsip; in on_packet()
|
D | test_clang_complex.c | 77 case ETH_P_ARP: goto arp; in handle_packet() 86 case ETH_P_ARP: goto arp; in handle_packet() 91 arp: { in handle_packet() 92 struct arp_t *arp = cursor_advance(cursor, sizeof(*arp)); in handle_packet() local 94 if (arp->oper == 1) { in handle_packet() 95 struct MacaddrKey mac_key = {.ip=arp->spa}; in handle_packet() 96 struct MacaddrLeaf mac_leaf = {.mac=arp->sha}; in handle_packet()
|
D | test_brb.c | 154 case ETH_P_ARP: goto arp; in br_common() 164 case ETH_P_ARP: goto arp; in br_common() 169 arp: { in br_common() 170 struct arp_t *arp = cursor_advance(cursor, sizeof(*arp)); in br_common() local 172 arpop = arp->oper; in br_common()
|
/external/iptables/extensions/ |
D | libarpt_mangle.c | 78 if (e->arp.arhln_mask == 0) in arpmangle_parse() 81 if (e->arp.invflags & ARPT_INV_ARPHLN) in arpmangle_parse() 85 if (e->arp.arhln != 6) in arpmangle_parse() 92 memcpy(mangle->src_devaddr, macaddr, e->arp.arhln); in arpmangle_parse() 96 if (e->arp.arhln_mask == 0) in arpmangle_parse() 99 if (e->arp.invflags & ARPT_INV_ARPHLN) in arpmangle_parse() 102 if (e->arp.arhln != 6) in arpmangle_parse() 108 memcpy(mangle->tgt_devaddr, macaddr, e->arp.arhln); in arpmangle_parse()
|
D | libxt_mangle.c | 235 if (e->arp.arhln_mask == 0) in mangle_parse() 238 if (e->arp.invflags & ARPT_INV_ARPHLN) in mangle_parse() 242 if (e->arp.arhln != 6) in mangle_parse() 248 memcpy(mangle->src_devaddr, macaddr, e->arp.arhln); in mangle_parse() 252 if (e->arp.arhln_mask == 0) in mangle_parse() 255 if (e->arp.invflags & ARPT_INV_ARPHLN) in mangle_parse() 258 if (e->arp.arhln != 6) in mangle_parse() 264 memcpy(mangle->tgt_devaddr, macaddr, e->arp.arhln); in mangle_parse()
|
/external/autotest/client/deps/lansim/src/py/ |
D | host.py | 47 "arp.op": dpkt.arp.ARP_OP_REQUEST, 78 self.add_arp(hw_addr=pkt.arp.sha, ip_addr=pkt.arp.spa) 80 arp_resp = dpkt.arp.ARP( 81 op = dpkt.arp.ARP_OP_REPLY, 83 tpa = pkt.arp.spa, # Target Protocol Address. 84 tha = pkt.arp.sha, # Target Hardware Address. 88 dst = pkt.arp.sha,
|
/external/syzkaller/sys/linux/ |
D | netfilter_arp.txt | 43 arp arpt_arp_or_uncond 48 # Note: matches should go here, but they seem to be unused in arp tables. 57 arp arpt_arp_uncond 65 arp arpt_arp
|
/external/scapy/scapy/layers/ |
D | l2.py | 563 arp = req.getlayer(ARP) 568 iff,a,gw = conf.route.route(arp.psrc) 581 psrc=arp.pdst, 582 hwdst=arp.hwsrc, 583 pdst=arp.psrc)
|
/external/icu/icu4c/source/data/lang/ |
D | es_SV.txt | 7 arp{"arapaho"}
|
D | es_PR.txt | 7 arp{"arapaho"}
|
D | es_NI.txt | 7 arp{"arapaho"}
|
D | es_PA.txt | 7 arp{"arapaho"}
|
D | es_CR.txt | 7 arp{"arapaho"}
|
D | es_PE.txt | 7 arp{"arapaho"}
|
D | es_AR.txt | 7 arp{"arapaho"}
|
D | es_CO.txt | 7 arp{"arapaho"}
|