Home
last modified time | relevance | path

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

/net/ipv4/
Darp.c530 struct arphdr *arp; in arp_create() local
545 arp = skb_put(skb, arp_hdr_len(dev)); in arp_create()
571 arp->ar_hrd = htons(dev->type); in arp_create()
572 arp->ar_pro = htons(ETH_P_IP); in arp_create()
577 arp->ar_hrd = htons(ARPHRD_AX25); in arp_create()
578 arp->ar_pro = htons(AX25_P_IP); in arp_create()
583 arp->ar_hrd = htons(ARPHRD_NETROM); in arp_create()
584 arp->ar_pro = htons(AX25_P_IP); in arp_create()
591 arp->ar_hrd = htons(ARPHRD_ETHER); in arp_create()
592 arp->ar_pro = htons(ETH_P_IP); in arp_create()
[all …]
DMakefile14 udp_offload.o arp.o icmp.o devinet.o af_inet.o igmp.o \
/net/ipv4/netfilter/
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()
Dipt_CLUSTERIP.c644 struct arphdr *arp = arp_hdr(skb); in clusterip_arp_mangle() local
650 if (arp->ar_hrd != htons(ARPHRD_ETHER) || in clusterip_arp_mangle()
651 arp->ar_pro != htons(ETH_P_IP) || in clusterip_arp_mangle()
652 arp->ar_pln != 4 || arp->ar_hln != ETH_ALEN) in clusterip_arp_mangle()
656 if (arp->ar_op != htons(ARPOP_REPLY) && in clusterip_arp_mangle()
657 arp->ar_op != htons(ARPOP_REQUEST)) in clusterip_arp_mangle()
660 payload = (void *)(arp+1); in clusterip_arp_mangle()
680 memcpy(payload->src_hw, c->clustermac, arp->ar_hln); in clusterip_arp_mangle()
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()
189 const struct arphdr *arp; in arpt_do_table() local
219 arp = arp_hdr(skb); in arpt_do_table()
224 if (!arp_packet_match(arp, skb->dev, indev, outdev, &e->arp)) { in arpt_do_table()
273 arp = arp_hdr(skb); in arpt_do_table()
295 memcmp(&e->arp, &uncond, sizeof(uncond)) == 0; in unconditional()
471 if (!arp_checkentry(&e->arp)) in check_entry_size_and_hooks()
1089 if (!arp_checkentry(&e->arp)) in check_compat_entry_size_and_hooks()
/net/openvswitch/
Dflow.c620 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()
638 memcpy(&key->ipv4.addr.dst, arp->ar_tip, sizeof(key->ipv4.addr.dst)); in key_extract_l3l4()
[all …]
Dflow.h115 } arp; member
Dflow_netlink.c1617 SW_FLOW_KEY_MEMCPY(match, ipv4.arp.sha, in ovs_key_from_nlattrs()
1619 SW_FLOW_KEY_MEMCPY(match, ipv4.arp.tha, in ovs_key_from_nlattrs()
2132 ether_addr_copy(arp_key->arp_sha, output->ipv4.arp.sha); in __ovs_nla_put_key()
2133 ether_addr_copy(arp_key->arp_tha, output->ipv4.arp.tha); in __ovs_nla_put_key()
/net/sched/
Dcls_flower.c53 struct flow_dissector_key_arp arp; member
1647 fl_set_key_val(tb, &key->arp.sip, TCA_FLOWER_KEY_ARP_SIP, in fl_set_key()
1648 &mask->arp.sip, TCA_FLOWER_KEY_ARP_SIP_MASK, in fl_set_key()
1649 sizeof(key->arp.sip)); in fl_set_key()
1650 fl_set_key_val(tb, &key->arp.tip, TCA_FLOWER_KEY_ARP_TIP, in fl_set_key()
1651 &mask->arp.tip, TCA_FLOWER_KEY_ARP_TIP_MASK, in fl_set_key()
1652 sizeof(key->arp.tip)); in fl_set_key()
1653 fl_set_key_val(tb, &key->arp.op, TCA_FLOWER_KEY_ARP_OP, in fl_set_key()
1654 &mask->arp.op, TCA_FLOWER_KEY_ARP_OP_MASK, in fl_set_key()
1655 sizeof(key->arp.op)); in fl_set_key()
[all …]
/net/core/
Dflow_dissector.c481 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()
/net/bridge/netfilter/
DKconfig176 tristate "ebt: arp reply target support"
179 This option adds the arp reply target, which allows
180 automatically sending arp replies to arp requests.
/net/batman-adv/
DMakefile14 batman-adv-$(CONFIG_BATMAN_ADV_DAT) += distributed-arp-table.o
/net/netfilter/
Dnft_compat.c57 struct arpt_entry arp; member
DKconfig463 replace the existing {ip,ip6,arp,eb}_tables infrastructure. It
746 This option provides a translation layer to run 32bit arp,ip(6),ebtables
/net/rose/
Daf_rose.c1223 skbn->arp = 1; in rose_sendmsg()