Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Guard CTASSERT
details: https://anonhg.NetBSD.org/src/rev/be980c89c4df
branches: trunk
changeset: 980409:be980c89c4df
user: roy <roy%NetBSD.org@localhost>
date: Wed Feb 03 17:10:13 2021 +0000
description:
Guard CTASSERT
diffstat:
sys/netinet/if_ether.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r e511260df2f8 -r be980c89c4df sys/netinet/if_ether.h
--- a/sys/netinet/if_ether.h Wed Feb 03 15:42:53 2021 +0000
+++ b/sys/netinet/if_ether.h Wed Feb 03 17:10:13 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ether.h,v 1.36 2021/02/03 11:53:43 roy Exp $ */
+/* $NetBSD: if_ether.h,v 1.37 2021/02/03 17:10:13 roy Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -76,7 +76,9 @@
u_int8_t arp_tha[ETHER_ADDR_LEN]; /* target hardware address */
u_int8_t arp_tpa[4]; /* target protocol address */
};
+#ifdef CTASSERT
CTASSERT(sizeof(struct ether_arp) == 28);
+#endif
#define arp_hrd ea_hdr.ar_hrd
#define arp_pro ea_hdr.ar_pro
#define arp_hln ea_hdr.ar_hln
Home |
Main Index |
Thread Index |
Old Index