Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net ARP headers only need 2 byte alignment - pointed out...



details:   https://anonhg.NetBSD.org/src/rev/39cea81b2aea
branches:  trunk
changeset: 952741:39cea81b2aea
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Feb 16 10:20:56 2021 +0000

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

diffstat:

 sys/net/if_arp.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5980d3de3277 -r 39cea81b2aea sys/net/if_arp.h
--- a/sys/net/if_arp.h  Tue Feb 16 10:02:42 2021 +0000
+++ b/sys/net/if_arp.h  Tue Feb 16 10:20:56 2021 +0000
@@ -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 @@
        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)



Home | Main Index | Thread Index | Old Index