Lines Matching refs:arp

2 /* linux/net/ipv4/arp.c
40 * eg intelligent arp probing and
51 * Stuart Cheshire : Metricom and grat arp fixes
60 * Alexey Kuznetsov: new arp state machine;
63 * Arnaldo C. Melo : convert /proc/net/arp to seq_file
109 #include <net/arp.h>
299 /* Create and send an arp packet. */
309 /* arp on this interface. */
479 * Check for RFC3069 proxy arp private VLAN (allow to send back to same dev)
481 * RFC3069 supports proxy arp replies back to the same interface. This
520 * Create an arp packet. If dest_hw is not set, we create a broadcast
530 struct arphdr *arp;
545 arp = skb_put(skb, arp_hdr_len(dev));
560 * Fill out the arp protocol part.
562 * The arp hardware type should match the device type, except for FDDI,
571 arp->ar_hrd = htons(dev->type);
572 arp->ar_pro = htons(ETH_P_IP);
577 arp->ar_hrd = htons(ARPHRD_AX25);
578 arp->ar_pro = htons(AX25_P_IP);
583 arp->ar_hrd = htons(ARPHRD_NETROM);
584 arp->ar_pro = htons(AX25_P_IP);
591 arp->ar_hrd = htons(ARPHRD_ETHER);
592 arp->ar_pro = htons(ETH_P_IP);
597 arp->ar_hln = dev->addr_len;
598 arp->ar_pln = 4;
599 arp->ar_op = htons(type);
601 arp_ptr = (unsigned char *)(arp + 1);
636 * Send an arp packet.
674 * Process an arp request.
681 struct arphdr *arp;
700 arp = arp_hdr(skb);
704 if (arp->ar_pro != htons(ETH_P_IP) ||
705 htons(dev_type) != arp->ar_hrd)
720 if ((arp->ar_hrd != htons(ARPHRD_ETHER) &&
721 arp->ar_hrd != htons(ARPHRD_IEEE802)) ||
722 arp->ar_pro != htons(ETH_P_IP))
726 if (arp->ar_pro != htons(AX25_P_IP) ||
727 arp->ar_hrd != htons(ARPHRD_AX25))
731 if (arp->ar_pro != htons(AX25_P_IP) ||
732 arp->ar_hrd != htons(ARPHRD_NETROM))
739 if (arp->ar_op != htons(ARPOP_REPLY) &&
740 arp->ar_op != htons(ARPOP_REQUEST))
746 arp_ptr = (unsigned char *)(arp + 1);
796 * and in the case of requests for us we add the requester to the arp
800 if (arp->ar_op == htons(ARPOP_REQUEST) && skb_metadata_dst(skb))
807 if (arp->ar_op == htons(ARPOP_REQUEST) &&
815 if (arp->ar_op == htons(ARPOP_REQUEST) &&
871 is_garp = arp_is_garp(net, dev, &addr_type, arp->ar_op,
882 (arp->ar_op == htons(ARPOP_REPLY) &&
898 arp trashing and chooses the fastest router.
908 if (arp->ar_op != htons(ARPOP_REPLY) ||
939 * Receive an arp request from the device layer.
945 const struct arphdr *arp;
961 arp = arp_hdr(skb);
962 if (arp->ar_hln != dev->addr_len || arp->ar_pln != 4)
1416 /* Don't want to confuse "arp -a" w/ magic entries,
1435 if (!proc_create_net("arp", 0444, net->proc_net, &arp_seq_ops,
1443 remove_proc_entry("arp", net->proc_net);