Lines Matching defs: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>
300 /* Create and send an arp packet. */
310 /* arp on this interface. */
442 case 2: /* Create a neighbor in the arp table only if sip
501 * Check for RFC3069 proxy arp private VLAN (allow to send back to same dev)
503 * RFC3069 supports proxy arp replies back to the same interface. This
542 * Create an arp packet. If dest_hw is not set, we create a broadcast
552 struct arphdr *arp;
567 arp = skb_put(skb, arp_hdr_len(dev));
582 * Fill out the arp protocol part.
584 * The arp hardware type should match the device type, except for FDDI,
593 arp->ar_hrd = htons(dev->type);
594 arp->ar_pro = htons(ETH_P_IP);
599 arp->ar_hrd = htons(ARPHRD_AX25);
600 arp->ar_pro = htons(AX25_P_IP);
605 arp->ar_hrd = htons(ARPHRD_NETROM);
606 arp->ar_pro = htons(AX25_P_IP);
613 arp->ar_hrd = htons(ARPHRD_ETHER);
614 arp->ar_pro = htons(ETH_P_IP);
619 arp->ar_hln = dev->addr_len;
620 arp->ar_pln = 4;
621 arp->ar_op = htons(type);
623 arp_ptr = (unsigned char *)(arp + 1);
658 * Send an arp packet.
698 * Process an arp request.
705 struct arphdr *arp;
724 arp = arp_hdr(skb);
728 if (arp->ar_pro != htons(ETH_P_IP) ||
729 htons(dev_type) != arp->ar_hrd)
744 if ((arp->ar_hrd != htons(ARPHRD_ETHER) &&
745 arp->ar_hrd != htons(ARPHRD_IEEE802)) ||
746 arp->ar_pro != htons(ETH_P_IP))
750 if (arp->ar_pro != htons(AX25_P_IP) ||
751 arp->ar_hrd != htons(ARPHRD_AX25))
755 if (arp->ar_pro != htons(AX25_P_IP) ||
756 arp->ar_hrd != htons(ARPHRD_NETROM))
763 if (arp->ar_op != htons(ARPOP_REPLY) &&
764 arp->ar_op != htons(ARPOP_REQUEST))
770 arp_ptr = (unsigned char *)(arp + 1);
820 * and in the case of requests for us we add the requester to the arp
824 if (arp->ar_op == htons(ARPOP_REQUEST) && skb_metadata_dst(skb))
831 if (arp->ar_op == htons(ARPOP_REQUEST) &&
839 if (arp->ar_op == htons(ARPOP_REQUEST) &&
895 is_garp = arp_is_garp(net, dev, &addr_type, arp->ar_op,
906 (arp->ar_op == htons(ARPOP_REPLY) &&
922 arp trashing and chooses the fastest router.
932 if (arp->ar_op != htons(ARPOP_REPLY) ||
963 * Receive an arp request from the device layer.
970 const struct arphdr *arp;
987 arp = arp_hdr(skb);
988 if (arp->ar_hln != dev->addr_len || arp->ar_pln != 4) {
1481 /* Don't want to confuse "arp -a" w/ magic entries,
1497 if (!proc_create_net("arp", 0444, net->proc_net, &arp_seq_ops,
1505 remove_proc_entry("arp", net->proc_net);