Module Name:    src
Committed By:   martin
Date:           Tue Feb 16 10:20:56 UTC 2021

Modified Files:
        src/sys/net: if_arp.h

Log Message:
ARP headers only need 2 byte alignment - pointed out by roy.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/net/if_arp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_arp.h
diff -u src/sys/net/if_arp.h:1.40 src/sys/net/if_arp.h:1.41
--- src/sys/net/if_arp.h:1.40	Sun Feb 14 20:58:34 2021
+++ src/sys/net/if_arp.h	Tue Feb 16 10:20:56 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_arp.h,v 1.40 2021/02/14 20:58:34 christos Exp $	*/
+/*	$NetBSD: if_arp.h,v 1.41 2021/02/16 10:20:56 martin Exp $	*/
 
 /*
  * Copyright (c) 1986, 1993
@@ -72,7 +72,7 @@ struct	arphdr {
 	uint8_t  ar_tpa[];	/* target protocol address */
 #endif
 };
-#define	ARP_HDR_ALIGNMENT	3
+#define	ARP_HDR_ALIGNMENT	1
 
 static __inline uint8_t *
 ar_data(struct arphdr *ap)

Reply via email to