Source-Changes-HG archive

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

[src/trunk]: src/sys/netmpls Assert size for sockaddr_mpls, but don't require...



details:   https://anonhg.NetBSD.org/src/rev/e6c512f98ec1
branches:  trunk
changeset: 348195:e6c512f98ec1
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Oct 08 20:19:37 2016 +0000

description:
Assert size for sockaddr_mpls, but don't require it to be packed.

diffstat:

 sys/netmpls/mpls.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 90408d0482a6 -r e6c512f98ec1 sys/netmpls/mpls.h
--- a/sys/netmpls/mpls.h        Sat Oct 08 20:08:57 2016 +0000
+++ b/sys/netmpls/mpls.h        Sat Oct 08 20:19:37 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mpls.h,v 1.1 2010/06/26 14:24:28 kefren Exp $ */
+/*     $NetBSD: mpls.h,v 1.2 2016/10/08 20:19:37 joerg Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
        uint8_t smpls_family;
        uint8_t smpls_pad[2];
        union mpls_shim smpls_addr;
-} __packed;
-
+};
+__CTASSERT(sizeof(struct sockaddr_mpls) == 8);
 
 #endif /* !_NETMPLS_MPLS_H_ */



Home | Main Index | Thread Index | Old Index