Assert size for sockaddr_mpls, but don't require it to be packed.
This commit is contained in:
parent
9b1f020a53
commit
f22328325c
@ -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 @@ struct sockaddr_mpls {
|
||||
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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user