Home
last modified time | relevance | path

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

12

/linux/net/ipv4/
H A Darp.c552 struct arphdr *arp; in arp_create() local
581 arp = arp_hdr(skb); in arp_create()
594 arp->ar_hrd = htons(dev->type); in arp_create()
595 arp->ar_pro = htons(ETH_P_IP); in arp_create()
600 arp->ar_hrd = htons(ARPHRD_AX25); in arp_create()
601 arp->ar_pro = htons(AX25_P_IP); in arp_create()
606 arp->ar_hrd = htons(ARPHRD_NETROM); in arp_create()
607 arp->ar_pro = htons(AX25_P_IP); in arp_create()
614 arp->ar_hrd = htons(ARPHRD_ETHER); in arp_create()
615 arp->ar_pro = htons(ETH_P_IP); in arp_create()
[all …]
/linux/drivers/net/bonding/
H A Dbond_alb.c56 static void rlb_purge_src_ip(struct bonding *bond, struct arp_pkt *arp);
248 static void rlb_update_entry_from_arp(struct bonding *bond, struct arp_pkt *arp) in rlb_update_entry_from_arp() argument
256 hash_index = _simple_hash((u8 *)&(arp->ip_src), sizeof(arp->ip_src)); in rlb_update_entry_from_arp()
260 (client_info->ip_src == arp->ip_dst) && in rlb_update_entry_from_arp()
261 (client_info->ip_dst == arp->ip_src) && in rlb_update_entry_from_arp()
262 (!ether_addr_equal_64bits(client_info->mac_dst, arp->mac_src))) { in rlb_update_entry_from_arp()
264 ether_addr_copy(client_info->mac_dst, arp->mac_src); in rlb_update_entry_from_arp()
275 struct arp_pkt *arp, _arp; in rlb_arp_recv() local
280 arp = skb_header_pointer(skb, 0, sizeof(_arp), &_arp); in rlb_arp_recv()
281 if (!arp) in rlb_arp_recv()
[all …]
/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()
/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/nxp/nxpwifi/
H A Dsta_rx.c25 const struct nxpwifi_arp_eth_header *arp; in nxpwifi_discard_gratuitous_arp() local
33 arp = (void *)(skb->data + sizeof(struct ethhdr)); in nxpwifi_discard_gratuitous_arp()
34 if (arp->hdr.ar_op == htons(ARPOP_REPLY) || in nxpwifi_discard_gratuitous_arp()
35 arp->hdr.ar_op == htons(ARPOP_REQUEST)) { in nxpwifi_discard_gratuitous_arp()
36 if (!memcmp(arp->ar_sip, arp->ar_tip, 4)) in nxpwifi_discard_gratuitous_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/net/openvswitch/
H A Dflow.c761 struct arp_eth_header *arp; in key_extract_l3l4() local
764 arp = (struct arp_eth_header *)skb_network_header(skb); in key_extract_l3l4()
767 arp->ar_hrd == htons(ARPHRD_ETHER) && in key_extract_l3l4()
768 arp->ar_pro == htons(ETH_P_IP) && in key_extract_l3l4()
769 arp->ar_hln == ETH_ALEN && in key_extract_l3l4()
770 arp->ar_pln == 4) { in key_extract_l3l4()
773 if (ntohs(arp->ar_op) <= 0xff) in key_extract_l3l4()
774 key->ip.proto = ntohs(arp->ar_op); in key_extract_l3l4()
778 memcpy(&key->ipv4.addr.src, arp->ar_sip, sizeof(key->ipv4.addr.src)); in key_extract_l3l4()
779 memcpy(&key->ipv4.addr.dst, arp->ar_tip, sizeof(key->ipv4.addr.dst)); in key_extract_l3l4()
[all …]
H A Dflow.h128 } arp; member
/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/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.c66 struct flow_dissector_key_arp arp;
2000 fl_set_key_val(tb, &key->arp.sip, TCA_FLOWER_KEY_ARP_SIP, in fl_set_key()
2001 &mask->arp.sip, TCA_FLOWER_KEY_ARP_SIP_MASK, in fl_set_key()
2002 sizeof(key->arp.sip)); in fl_set_key()
2003 fl_set_key_val(tb, &key->arp.tip, TCA_FLOWER_KEY_ARP_TIP, in fl_set_key()
2004 &mask->arp.tip, TCA_FLOWER_KEY_ARP_TIP_MASK, in fl_set_key()
2005 sizeof(key->arp.tip)); in fl_set_key()
2006 fl_set_key_val(tb, &key->arp.op, TCA_FLOWER_KEY_ARP_OP, in fl_set_key()
2007 &mask->arp.op, TCA_FLOWER_KEY_ARP_OP_MASK, in fl_set_key()
2008 sizeof(key->arp in fl_set_key()
68 struct flow_dissector_key_arp arp; global() member
[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/include/linux/netfilter_arp/
H A Darp_tables.h63 struct arpt_arp arp; member
/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/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
/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/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

12