/linux-6.3-rc2/net/ipv4/ |
A D | arp.c | 551 struct arphdr *arp; in arp_create() local 593 arp->ar_pro = htons(ETH_P_IP); in arp_create() 613 arp->ar_pro = htons(ETH_P_IP); in arp_create() 618 arp->ar_hln = dev->addr_len; in arp_create() 619 arp->ar_pln = 4; in arp_create() 620 arp->ar_op = htons(type); in arp_create() 702 struct arphdr *arp; in arp_process() local 721 arp = arp_hdr(skb); in arp_process() 966 const struct arphdr *arp; in arp_rcv() local 982 arp = arp_hdr(skb); in arp_rcv() [all …]
|
A D | Makefile | 14 udp_offload.o arp.o icmp.o devinet.o af_inet.o igmp.o \
|
/linux-6.3-rc2/drivers/net/bonding/ |
A D | bond_alb.c | 256 hash_index = _simple_hash((u8 *)&(arp->ip_src), sizeof(arp->ip_src)); in rlb_update_entry_from_arp() 275 struct arp_pkt *arp, _arp; in rlb_arp_recv() local 281 if (!arp) in rlb_arp_recv() 294 rlb_purge_src_ip(bond, arp); in rlb_arp_recv() 555 const struct arp_pkt *arp) in rlb_choose_channel() argument 566 hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_dst)); in rlb_choose_channel() 606 sizeof(arp->ip_src)); in rlb_choose_channel() 611 client_info->ip_src = arp->ip_src; in rlb_choose_channel() 612 client_info->ip_dst = arp->ip_dst; in rlb_choose_channel() 657 struct arp_pkt *arp; in rlb_arp_xmit() local [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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 | 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-6.3-rc2/drivers/net/wireless/intel/iwlwifi/mei/ |
A D | net.c | 85 const struct arphdr *arp; in iwl_mei_rx_filter_arp() local 92 arp = arp_hdr(skb); in iwl_mei_rx_filter_arp() 95 if (arp->ar_hrd != htons(ARPHRD_ETHER) || in iwl_mei_rx_filter_arp() 96 arp->ar_pro != htons(ETH_P_IP)) in iwl_mei_rx_filter_arp() 105 target_ip = (const void *)((const u8 *)(arp + 1) + in iwl_mei_rx_filter_arp() 112 if (arp->ar_op == htons(ARPOP_REQUEST) && in iwl_mei_rx_filter_arp() 125 arp->ar_op == htons(ARPOP_REPLY)) { in iwl_mei_rx_filter_arp()
|
/linux-6.3-rc2/drivers/net/wireless/marvell/mwifiex/ |
A D | sta_rx.c | 26 const struct mwifiex_arp_eth_header *arp; in mwifiex_discard_gratuitous_arp() local 34 arp = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp() 35 if (arp->hdr.ar_op == htons(ARPOP_REPLY) || in mwifiex_discard_gratuitous_arp() 36 arp->hdr.ar_op == htons(ARPOP_REQUEST)) { in mwifiex_discard_gratuitous_arp() 37 if (!memcmp(arp->ar_sip, arp->ar_tip, 4)) in mwifiex_discard_gratuitous_arp()
|
/linux-6.3-rc2/samples/bpf/ |
A D | xdp_router_ipv4_user.c | 111 struct arp_table arp; in read_route() member 172 direct_entry.arp.mac = 0; in read_route() 173 direct_entry.arp.dst = 0; in read_route() 181 &direct_entry.arp.mac) == 0) in read_route() 182 direct_entry.arp.dst = route.dst; in read_route() 328 struct arp_table arp; in read_arp() member 360 direct_entry.arp.dst = 0; in read_arp() 361 direct_entry.arp.mac = 0; in read_arp() 363 direct_entry.arp.dst = arp_entry.dst; in read_arp() 364 direct_entry.arp.mac = arp_entry.mac; in read_arp()
|
A D | xdp_router_ipv4.bpf.c | 36 struct arp_entry arp; member 122 direct_entry->arp.mac) { in xdp_router_ipv4_prog() 124 dest_mac = &direct_entry->arp.mac; in xdp_router_ipv4_prog()
|
/linux-6.3-rc2/net/openvswitch/ |
A D | flow.c | 764 struct arp_eth_header *arp; in key_extract_l3l4() local 767 arp = (struct arp_eth_header *)skb_network_header(skb); in key_extract_l3l4() 770 arp->ar_hrd == htons(ARPHRD_ETHER) && in key_extract_l3l4() 771 arp->ar_pro == htons(ETH_P_IP) && in key_extract_l3l4() 772 arp->ar_hln == ETH_ALEN && in key_extract_l3l4() 773 arp->ar_pln == 4) { in key_extract_l3l4() 776 if (ntohs(arp->ar_op) <= 0xff) in key_extract_l3l4() 777 key->ip.proto = ntohs(arp->ar_op); in key_extract_l3l4() 781 memcpy(&key->ipv4.addr.src, arp->ar_sip, sizeof(key->ipv4.addr.src)); in key_extract_l3l4() 783 ether_addr_copy(key->ipv4.arp.sha, arp->ar_sha); in key_extract_l3l4() [all …]
|
A D | flow.h | 128 } arp; member
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/net/sched/ |
A D | cls_flower.c | 56 struct flow_dissector_key_arp arp; member 1788 sizeof(key->arp.sip)); in fl_set_key() 1791 sizeof(key->arp.tip)); in fl_set_key() 1794 sizeof(key->arp.op)); in fl_set_key() 1797 sizeof(key->arp.sha)); in fl_set_key() 1800 sizeof(key->arp.tha)); in fl_set_key() 3209 sizeof(key->arp.sip)) || in fl_dump_key() 3213 sizeof(key->arp.tip)) || in fl_dump_key() 3217 sizeof(key->arp.op)) || in fl_dump_key() 3220 sizeof(key->arp.sha)) || in fl_dump_key() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/drivers/net/bonding/ |
A D | Makefile | 5 bond-arp-interval-causes-panic.sh \
|
/linux-6.3-rc2/net/core/ |
A D | flow_dissector.c | 507 const struct arphdr *arp; in __skb_flow_dissect_arp() local 513 arp = __skb_header_pointer(skb, nhoff, sizeof(_arp), data, in __skb_flow_dissect_arp() 515 if (!arp) in __skb_flow_dissect_arp() 518 if (arp->ar_hrd != htons(ARPHRD_ETHER) || in __skb_flow_dissect_arp() 519 arp->ar_pro != htons(ETH_P_IP) || in __skb_flow_dissect_arp() 520 arp->ar_hln != ETH_ALEN || in __skb_flow_dissect_arp() 521 arp->ar_pln != 4 || in __skb_flow_dissect_arp() 522 (arp->ar_op != htons(ARPOP_REPLY) && in __skb_flow_dissect_arp() 523 arp->ar_op != htons(ARPOP_REQUEST))) in __skb_flow_dissect_arp() 542 key_arp->op = ntohs(arp->ar_op) & 0xff; in __skb_flow_dissect_arp()
|
/linux-6.3-rc2/include/linux/netfilter_arp/ |
A D | arp_tables.h | 64 struct arpt_arp arp; member
|
/linux-6.3-rc2/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-6.3-rc2/net/batman-adv/ |
A D | Makefile | 14 batman-adv-$(CONFIG_BATMAN_ADV_DAT) += distributed-arp-table.o
|
/linux-6.3-rc2/tools/testing/selftests/drivers/net/mlxsw/ |
A D | qos_defprio.sh | 94 mausezahn -q $h1 -d 100m -c 10 -t arp reply
|
A D | sharedbuffer.sh | 166 $MZ $h1 -c 1 -p 160 -a $h1mac -A 192.0.1.1 -t arp -q
|
/linux-6.3-rc2/include/uapi/linux/netfilter_arp/ |
A D | arp_tables.h | 98 struct arpt_arp arp; member
|
/linux-6.3-rc2/include/soc/mscc/ |
A D | ocelot_vcap.h | 529 enum ocelot_vcap_bit arp; /* Opcode ARP/RARP */ member 714 struct ocelot_vcap_key_arp arp; member
|