Home
last modified time | relevance | path

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

/net/ipv4/
Darp.c551 struct arphdr *arp; in arp_create() local
566 arp = skb_put(skb, arp_hdr_len(dev)); in arp_create()
592 arp->ar_hrd = htons(dev->type); in arp_create()
593 arp->ar_pro = htons(ETH_P_IP); in arp_create()
598 arp->ar_hrd = htons(ARPHRD_AX25); in arp_create()
599 arp->ar_pro = htons(AX25_P_IP); in arp_create()
604 arp->ar_hrd = htons(ARPHRD_NETROM); in arp_create()
605 arp->ar_pro = htons(AX25_P_IP); in arp_create()
612 arp->ar_hrd = htons(ARPHRD_ETHER); in arp_create()
613 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()
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()
/net/openvswitch/
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 …]
Dflow.h128 } arp; member
Dflow_netlink.c1638 SW_FLOW_KEY_MEMCPY(match, ipv4.arp.sha, in ovs_key_from_nlattrs()
1640 SW_FLOW_KEY_MEMCPY(match, ipv4.arp.tha, in ovs_key_from_nlattrs()
2161 ether_addr_copy(arp_key->arp_sha, output->ipv4.arp.sha); in __ovs_nla_put_key()
2162 ether_addr_copy(arp_key->arp_tha, output->ipv4.arp.tha); in __ovs_nla_put_key()
/net/sched/
Dcls_flower.c55 struct flow_dissector_key_arp arp; member
1793 fl_set_key_val(tb, &key->arp.sip, TCA_FLOWER_KEY_ARP_SIP, in fl_set_key()
1794 &mask->arp.sip, TCA_FLOWER_KEY_ARP_SIP_MASK, in fl_set_key()
1795 sizeof(key->arp.sip)); in fl_set_key()
1796 fl_set_key_val(tb, &key->arp.tip, TCA_FLOWER_KEY_ARP_TIP, in fl_set_key()
1797 &mask->arp.tip, TCA_FLOWER_KEY_ARP_TIP_MASK, in fl_set_key()
1798 sizeof(key->arp.tip)); in fl_set_key()
1799 fl_set_key_val(tb, &key->arp.op, TCA_FLOWER_KEY_ARP_OP, in fl_set_key()
1800 &mask->arp.op, TCA_FLOWER_KEY_ARP_OP_MASK, in fl_set_key()
1801 sizeof(key->arp.op)); in fl_set_key()
[all …]
/net/core/
Dflow_dissector.c507 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()
/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
DKconfig473 replace the existing {ip,ip6,arp,eb}_tables infrastructure. It
758 This option provides a translation layer to run 32bit arp,ip(6),ebtables
/net/rose/
Daf_rose.c1230 skbn->arp = 1; in rose_sendmsg()