/linux/net/ipv4/ |
A D | arp.c | 530 struct arphdr *arp; in arp_create() local 572 arp->ar_pro = htons(ETH_P_IP); in arp_create() 592 arp->ar_pro = htons(ETH_P_IP); in arp_create() 597 arp->ar_hln = dev->addr_len; in arp_create() 598 arp->ar_pln = 4; in arp_create() 599 arp->ar_op = htons(type); in arp_create() 681 struct arphdr *arp; in arp_process() local 700 arp = arp_hdr(skb); in arp_process() 945 const struct arphdr *arp; in arp_rcv() local 961 arp = arp_hdr(skb); in arp_rcv() [all …]
|
A D | built-in.a | 33 arp.o/
|
A D | .arp.o.cmd | 1 …arp.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aarc… 3 source_net/ipv4/arp.o := net/ipv4/arp.c 5 deps_net/ipv4/arp.o := \ 1478 include/net/arp.h \ 1523 net/ipv4/arp.o: $(deps_net/ipv4/arp.o) 1525 $(deps_net/ipv4/arp.o):
|
A D | .built-in.a.cmd | 1 …v4/raw.o net/ipv4/udp.o net/ipv4/udplite.o net/ipv4/udp_offload.o net/ipv4/arp.o net/ipv4/icmp.o n…
|
/linux/drivers/net/bonding/ |
A D | bond_alb.c | 255 hash_index = _simple_hash((u8 *)&(arp->ip_src), sizeof(arp->ip_src)); in rlb_update_entry_from_arp() 274 struct arp_pkt *arp, _arp; in rlb_arp_recv() local 280 if (!arp) in rlb_arp_recv() 293 rlb_purge_src_ip(bond, arp); in rlb_arp_recv() 554 const struct arp_pkt *arp) in rlb_choose_channel() argument 565 hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_dst)); in rlb_choose_channel() 605 sizeof(arp->ip_src)); in rlb_choose_channel() 610 client_info->ip_src = arp->ip_src; in rlb_choose_channel() 611 client_info->ip_dst = arp->ip_dst; in rlb_choose_channel() 655 struct arp_pkt *arp; in rlb_arp_xmit() local [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | loopback.sh | 38 tc filter add dev $h1 ingress protocol arp pref 1 handle 101 flower \ 41 $MZ $h1 -c 1 -t arp -q 51 $MZ $h1 -c 1 -t arp -q 59 $MZ $h1 -c 1 -t arp -q 64 tc filter del dev $h1 ingress protocol arp pref 1 handle 101 flower
|
A D | bridge_sticky_fdb.sh | 54 $MZ $h2 -c 1 -a $TEST_MAC -t arp "request" -q
|
/linux/net/ipv4/netfilter/ |
A D | arpt_mangle.c | 16 const struct arphdr *arp; in target() local 23 arp = arp_hdr(skb); in target() 24 arpptr = skb_network_header(skb) + sizeof(*arp); in target() 25 pln = arp->ar_pln; in target() 26 hln = arp->ar_hln; in target()
|
A D | ipt_CLUSTERIP.c | 641 struct arphdr *arp = arp_hdr(skb); in clusterip_arp_mangle() local 647 if (arp->ar_hrd != htons(ARPHRD_ETHER) || in clusterip_arp_mangle() 648 arp->ar_pro != htons(ETH_P_IP) || in clusterip_arp_mangle() 649 arp->ar_pln != 4 || arp->ar_hln != ETH_ALEN) in clusterip_arp_mangle() 653 if (arp->ar_op != htons(ARPOP_REPLY) && in clusterip_arp_mangle() 654 arp->ar_op != htons(ARPOP_REQUEST)) in clusterip_arp_mangle() 657 payload = (void *)(arp+1); in clusterip_arp_mangle() 677 memcpy(payload->src_hw, c->clustermac, arp->ar_hln); in clusterip_arp_mangle()
|
A D | arp_tables.c | 145 static inline int arp_checkentry(const struct arpt_arp *arp) in arp_checkentry() argument 147 if (arp->flags & ~ARPT_F_MASK) in arp_checkentry() 149 if (arp->invflags & ~ARPT_INV_MASK) in arp_checkentry() 190 const struct arphdr *arp; in arpt_do_table() local 220 arp = arp_hdr(skb); in arpt_do_table() 225 if (!arp_packet_match(arp, skb->dev, indev, outdev, &e->arp)) { in arpt_do_table() 274 arp = arp_hdr(skb); in arpt_do_table() 296 memcmp(&e->arp, &uncond, sizeof(uncond)) == 0; in unconditional() 472 if (!arp_checkentry(&e->arp)) in check_entry_size_and_hooks() 1090 if (!arp_checkentry(&e->arp)) in check_compat_entry_size_and_hooks()
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
A D | sta_rx.c | 38 const struct mwifiex_arp_eth_header *arp; in mwifiex_discard_gratuitous_arp() local 46 arp = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp() 47 if (arp->hdr.ar_op == htons(ARPOP_REPLY) || in mwifiex_discard_gratuitous_arp() 48 arp->hdr.ar_op == htons(ARPOP_REQUEST)) { in mwifiex_discard_gratuitous_arp() 49 if (!memcmp(arp->ar_sip, arp->ar_tip, 4)) in mwifiex_discard_gratuitous_arp()
|
/linux/net/openvswitch/ |
A D | flow.c | 620 struct arp_eth_header *arp; in key_extract_l3l4() local 623 arp = (struct arp_eth_header *)skb_network_header(skb); in key_extract_l3l4() 626 arp->ar_hrd == htons(ARPHRD_ETHER) && in key_extract_l3l4() 627 arp->ar_pro == htons(ETH_P_IP) && in key_extract_l3l4() 628 arp->ar_hln == ETH_ALEN && in key_extract_l3l4() 629 arp->ar_pln == 4) { in key_extract_l3l4() 632 if (ntohs(arp->ar_op) <= 0xff) in key_extract_l3l4() 633 key->ip.proto = ntohs(arp->ar_op); in key_extract_l3l4() 637 memcpy(&key->ipv4.addr.src, arp->ar_sip, sizeof(key->ipv4.addr.src)); in key_extract_l3l4() 639 ether_addr_copy(key->ipv4.arp.sha, arp->ar_sha); in key_extract_l3l4() [all …]
|
/linux/drivers/net/ethernet/mscc/ |
A D | ocelot_vcap.c | 441 struct ocelot_vcap_key_arp *arp = &filter->key.arp; in is2_entry_set() local 445 arp->smac.value, arp->smac.mask); in is2_entry_set() 448 arp->ethernet); in is2_entry_set() 451 arp->ip); in is2_entry_set() 454 arp->length); in is2_entry_set() 457 arp->dmac_match); in is2_entry_set() 463 arp->unknown); in is2_entry_set() 467 (arp->arp == OCELOT_VCAP_BIT_0 ? 2 : 0)); in is2_entry_set() 469 (arp->arp == OCELOT_VCAP_BIT_ANY ? 0 : 2)); in is2_entry_set() 474 arp->dip.value.addr, arp->dip.mask.addr); in is2_entry_set() [all …]
|
/linux/samples/bpf/ |
A D | xdp_router_ipv4_user.c | 143 struct arp_table arp; in read_route() member 219 direct_entry.arp.mac = 0; in read_route() 220 direct_entry.arp.dst = 0; in read_route() 228 &direct_entry.arp.mac) == 0) in read_route() 229 direct_entry.arp.dst = route.dst; in read_route() 393 struct arp_table arp; in read_arp() member 439 direct_entry.arp.dst = 0; in read_arp() 440 direct_entry.arp.mac = 0; in read_arp() 442 direct_entry.arp.dst = arp_entry.dst; in read_arp() 443 direct_entry.arp.mac = arp_entry.mac; in read_arp()
|
A D | xdp_router_ipv4_kern.c | 39 struct arp_entry arp; member 147 if (direct_entry && direct_entry->mac && direct_entry->arp.mac) { in xdp_router_ipv4_prog() 149 dest_mac = &direct_entry->arp.mac; in xdp_router_ipv4_prog()
|
/linux/net/sched/ |
A D | cls_flower.c | 53 struct flow_dissector_key_arp arp; member 1629 sizeof(key->arp.sip)); in fl_set_key() 1632 sizeof(key->arp.tip)); in fl_set_key() 1635 sizeof(key->arp.op)); in fl_set_key() 1638 sizeof(key->arp.sha)); in fl_set_key() 1641 sizeof(key->arp.tha)); in fl_set_key() 2976 sizeof(key->arp.sip)) || in fl_dump_key() 2980 sizeof(key->arp.tip)) || in fl_dump_key() 2984 sizeof(key->arp.op)) || in fl_dump_key() 2987 sizeof(key->arp.sha)) || in fl_dump_key() [all …]
|
/linux/drivers/net/arcnet/ |
A D | rfc1201.c | 208 struct arphdr *arp = (struct arphdr *)soft->payload; in rx() local 211 if (arp->ar_hln == 1 && arp->ar_pln == 4) { in rx() 212 uint8_t *cptr = (uint8_t *)arp + sizeof(struct arphdr); in rx() 226 arp->ar_hln, arp->ar_pln); in rx()
|
/linux/net/core/ |
A D | flow_dissector.c | 481 const struct arphdr *arp; in __skb_flow_dissect_arp() local 487 arp = __skb_header_pointer(skb, nhoff, sizeof(_arp), data, in __skb_flow_dissect_arp() 489 if (!arp) in __skb_flow_dissect_arp() 492 if (arp->ar_hrd != htons(ARPHRD_ETHER) || in __skb_flow_dissect_arp() 493 arp->ar_pro != htons(ETH_P_IP) || in __skb_flow_dissect_arp() 494 arp->ar_hln != ETH_ALEN || in __skb_flow_dissect_arp() 495 arp->ar_pln != 4 || in __skb_flow_dissect_arp() 496 (arp->ar_op != htons(ARPOP_REPLY) && in __skb_flow_dissect_arp() 497 arp->ar_op != htons(ARPOP_REQUEST))) in __skb_flow_dissect_arp() 516 key_arp->op = ntohs(arp->ar_op) & 0xff; in __skb_flow_dissect_arp()
|
/linux/drivers/staging/r8188eu/core/ |
A D | rtw_br_ext.c | 444 struct arphdr *arp = (struct arphdr *)(skb->data + ETH_HLEN); in nat25_db_handle() local 445 unsigned char *arp_ptr = (unsigned char *)(arp + 1); in nat25_db_handle() 448 if (arp->ar_pro != __constant_htons(ETH_P_IP)) { in nat25_db_handle() 449 DEBUG_WARN("NAT25: arp protocol unknown (%4x)!\n", be16_to_cpu(arp->ar_pro)); in nat25_db_handle() 462 arp_ptr += arp->ar_hln; in nat25_db_handle()
|
/linux/net/bridge/netfilter/ |
A D | Kconfig | 176 tristate "ebt: arp reply target support" 179 This option adds the arp reply target, which allows 180 automatically sending arp replies to arp requests.
|
/linux/include/linux/netfilter_arp/ |
A D | arp_tables.h | 64 struct arpt_arp arp; member
|
/linux/net/batman-adv/ |
A D | Makefile | 14 batman-adv-$(CONFIG_BATMAN_ADV_DAT) += distributed-arp-table.o
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
A D | qos_defprio.sh | 130 mausezahn -q $h1 -d 100m -c 10 -t arp reply
|
/linux/include/uapi/linux/netfilter_arp/ |
A D | arp_tables.h | 98 struct arpt_arp arp; member
|
/linux/include/soc/mscc/ |
A D | ocelot_vcap.h | 515 enum ocelot_vcap_bit arp; /* Opcode ARP/RARP */ member 695 struct ocelot_vcap_key_arp arp; member
|