From: Roy Marples Date: Sat, 12 Jul 2008 00:49:34 +0000 (+0000) Subject: We should use ETHERMIN. X-Git-Tag: v4.0.2~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6c4cbb9c137ed9fc61907240cf25794b39417de;p=thirdparty%2Fdhcpcd.git We should use ETHERMIN. --- diff --git a/net.c b/net.c index f86bff28..98001117 100644 --- a/net.c +++ b/net.c @@ -624,8 +624,8 @@ send_arp(const struct interface *iface, int op, in_addr_t sip, in_addr_t tip) arpsize = sizeof(*arp) + 2 * iface->hwlen + 2 *sizeof(sip); /* Ensure that our packet is of the minimum size */ - if (arpsize < ETHER_MIN_LEN - ETHER_HDR_LEN) - arpsize = ETHER_MIN_LEN - ETHER_HDR_LEN; + if (arpsize < ETHERMIN) + arpsize = ETHERMIN; arp = xmalloc(arpsize); arp->ar_hrd = htons(iface->family); arp->ar_pro = htons(ETHERTYPE_IP);