]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
ARP: add a comment to note ethernet padding upto 60 bytes.
authorRoy Marples <roy@marples.name>
Fri, 31 Jan 2020 11:04:27 +0000 (11:04 +0000)
committerRoy Marples <roy@marples.name>
Fri, 31 Jan 2020 11:04:27 +0000 (11:04 +0000)
src/arp.c

index 72e0f7b6fd27bf9966672981407621ce5001460a..b46535cf31dd4ef771f4c68a8cf949f1508a3ea3 100644 (file)
--- a/src/arp.c
+++ b/src/arp.c
@@ -109,6 +109,8 @@ arp_request(const struct interface *ifp,
                return ps_bpf_sendarp(ifp, arp_buffer, len);
 #endif
        state = ARP_CSTATE(ifp);
+       /* Note that well formed ethernet will add extra padding
+        * to ensure that the packet is at least 60 bytes (64 including FCS). */
        return bpf_send(ifp, state->bpf_fd, ETHERTYPE_ARP, arp_buffer, len);
 
 eexit: