Home
last modified time | relevance | path

Searched refs:arp (Results 1 – 25 of 41) sorted by relevance

12

/linux/tools/testing/selftests/drivers/net/hw/
H A Dloopback.sh39 tc filter add dev $h1 ingress protocol arp pref 1 handle 101 flower \
42 $MZ $h1 -c 1 -t arp -q
52 $MZ $h1 -c 1 -t arp -q
60 $MZ $h1 -c 1 -t arp -q
65 tc filter del dev $h1 ingress protocol arp pref 1 handle 101 flower
/linux/net/ipv4/netfilter/
H A Darpt_mangle.c16 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()
H A Darp_tables.c145 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()
1094 if (!arp_checkentry(&e->arp)) in check_compat_entry_size_and_hooks()
/linux/drivers/net/wireless/intel/iwlwifi/mei/
H A Dnet.c85 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/drivers/net/wireless/marvell/mwifiex/
H A Dsta_rx.c26 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/samples/bpf/
H A Dxdp_router_ipv4_user.c111 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()
H A Dxdp_router_ipv4.bpf.c36 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/drivers/net/ethernet/mscc/
H A Docelot_vcap.c441 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()
460 arp->smac_match); in is2_entry_set()
463 arp->unknown); in is2_entry_set()
466 val = ((arp->req == OCELOT_VCAP_BIT_0 ? 1 : 0) | in is2_entry_set()
467 (arp->arp == OCELOT_VCAP_BIT_0 ? 2 : 0)); in is2_entry_set()
[all …]
/linux/drivers/net/arcnet/
H A Drfc1201.c209 struct arphdr *arp = (struct arphdr *)soft->payload; in rx() local
212 if (arp->ar_hln == 1 && arp->ar_pln == 4) { in rx()
213 uint8_t *cptr = (uint8_t *)arp + sizeof(struct arphdr); in rx()
227 arp->ar_hln, arp->ar_pln); in rx()
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dsharedbuffer.sh184 tc filter add dev $h1 egress protocol arp pref 1 handle 101 flower \
189 $MZ $h1 -c 1 -p 10 -a $h1mac -A 192.0.1.1 -t arp -q
203 tc filter del dev $h1 egress protocol arp pref 1 handle 101 flower \
H A Dqos_defprio.sh94 mausezahn -q $h1 -d 100m -c 10 -t arp reply
H A Ddevlink_trap_control.sh332 $MZ $h1 -c 1 -a own -b bcast -t arp request -p 100 -q
338 $MZ $h1 -c 1 -a own -b $(mac_get $rp1) -t arp reply -p 100 -q
/linux/net/sched/
H A Dcls_flower.c68 struct flow_dissector_key_arp arp; member
2004 fl_set_key_val(tb, &key->arp.sip, TCA_FLOWER_KEY_ARP_SIP, in fl_set_key()
2005 &mask->arp.sip, TCA_FLOWER_KEY_ARP_SIP_MASK, in fl_set_key()
2006 sizeof(key->arp.sip)); in fl_set_key()
2007 fl_set_key_val(tb, &key->arp.tip, TCA_FLOWER_KEY_ARP_TIP, in fl_set_key()
2008 &mask->arp.tip, TCA_FLOWER_KEY_ARP_TIP_MASK, in fl_set_key()
2009 sizeof(key->arp.tip)); in fl_set_key()
2010 fl_set_key_val(tb, &key->arp.op, TCA_FLOWER_KEY_ARP_OP, in fl_set_key()
2011 &mask->arp.op, TCA_FLOWER_KEY_ARP_OP_MASK, in fl_set_key()
2012 sizeof(key->arp in fl_set_key()
[all...]
/linux/tools/testing/selftests/drivers/net/bonding/
H A DMakefile5 bond-arp-interval-causes-panic.sh \
H A Dbond_options.sh344 tc -n ${g_ns} filter add dev s$i ingress protocol arp pref 1 handle 101 \
561 tc -n "${c_ns}" filter add dev eth0.3 ingress protocol arp \
/linux/net/core/
H A Dflow_dissector.c585 const struct arphdr *arp; in __skb_flow_dissect_arp() local
591 arp = __skb_header_pointer(skb, nhoff, sizeof(_arp), data, in __skb_flow_dissect_arp()
593 if (!arp) in __skb_flow_dissect_arp()
596 if (arp->ar_hrd != htons(ARPHRD_ETHER) || in __skb_flow_dissect_arp()
597 arp->ar_pro != htons(ETH_P_IP) || in __skb_flow_dissect_arp()
598 arp->ar_hln != ETH_ALEN || in __skb_flow_dissect_arp()
599 arp->ar_pln != 4 || in __skb_flow_dissect_arp()
600 (arp->ar_op != htons(ARPOP_REPLY) && in __skb_flow_dissect_arp()
601 arp->ar_op != htons(ARPOP_REQUEST))) in __skb_flow_dissect_arp()
620 key_arp->op = ntohs(arp->ar_op) & 0xff; in __skb_flow_dissect_arp()
/linux/include/linux/netfilter_arp/
H A Darp_tables.h64 struct arpt_arp arp; member
/linux/net/bridge/netfilter/
H A DKconfig190 tristate "ebt: arp reply target support"
193 This option adds the arp reply target, which allows
194 automatically sending arp replies to arp requests.
/linux/tools/testing/selftests/net/
H A Dbroadcast_ether_dst.sh27 ip netns exec "${CLIENT_NS}" arp -s "${GW_IP4}" 00:11:22:33:44:55
H A Darp_ndisc_untracked_subnets.sh10 TESTS="arp ndisc"
278 arp_test_gratuitous_combinations|arp) arp_test_gratuitous_combinations;;
/linux/tools/testing/selftests/net/forwarding/
H A Dbridge_sticky_fdb.sh54 $MZ $h2 -c 1 -a $TEST_MAC -t arp "request" -q
/linux/include/uapi/linux/netfilter_arp/
H A Darp_tables.h98 struct arpt_arp arp; member
/linux/include/soc/mscc/
H A Docelot_vcap.h531 enum ocelot_vcap_bit arp; /* Opcode ARP/RARP */ member
716 struct ocelot_vcap_key_arp arp; member
/linux/net/ipv4/
H A DMakefile14 udp_offload.o arp.o icmp.o devinet.o af_inet.o igmp.o \
/linux/net/openvswitch/
H A Dflow.h128 } arp; member

12