Module Name: src Committed By: roy Date: Wed Feb 3 17:10:13 UTC 2021
Modified Files: src/sys/netinet: if_ether.h Log Message: Guard CTASSERT To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/netinet/if_ether.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/netinet/if_ether.h diff -u src/sys/netinet/if_ether.h:1.36 src/sys/netinet/if_ether.h:1.37 --- src/sys/netinet/if_ether.h:1.36 Wed Feb 3 11:53:43 2021 +++ src/sys/netinet/if_ether.h Wed Feb 3 17:10:13 2021 @@ -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 @@ struct ether_arp { 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