Lines Matching defs:arp
515 struct arphdr *arp = arp_hdr(*pskb);
520 if (arp->ar_hrd != htons(ARPHRD_ETHER)
521 || arp->ar_pro != htons(ETH_P_IP)
522 || arp->ar_pln != 4 || arp->ar_hln != ETH_ALEN)
525 /* we only want to mangle arp requests and replies */
526 if (arp->ar_op != htons(ARPOP_REPLY)
527 && arp->ar_op != htons(ARPOP_REQUEST))
530 payload = (void *)(arp+1);
532 /* if there is no clusterip configuration for the arp reply's
538 /* normally the linux kernel always replies to arp queries of
543 DEBUGP("CLUSTERIP: not mangling arp reply on different "
550 memcpy(payload->src_hw, c->clustermac, arp->ar_hln);
553 DEBUGP(KERN_DEBUG "CLUSTERIP mangled arp reply: ");