summaryrefslogtreecommitdiffstats
path: root/sys/net/if_llc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_llc.h')
-rw-r--r--sys/net/if_llc.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/net/if_llc.h b/sys/net/if_llc.h
index 8d96686..0d96372 100644
--- a/sys/net/if_llc.h
+++ b/sys/net/if_llc.h
@@ -52,15 +52,15 @@ struct llc {
u_int8_t format_id;
u_int8_t class;
u_int8_t window_x2;
- } type_u __packed;
+ } __packed type_u;
struct {
u_int8_t num_snd_x2;
u_int8_t num_rcv_x2;
- } type_i __packed;
+ } __packed type_i;
struct {
u_int8_t control;
u_int8_t num_rcv_x2;
- } type_s __packed;
+ } __packed type_s;
struct {
u_int8_t control;
/*
@@ -72,17 +72,17 @@ struct llc {
u_int8_t frmr_control;
u_int8_t frmr_control_ext;
u_int8_t frmr_cause;
- } type_frmr __packed;
+ } __packed type_frmr;
struct {
u_int8_t control;
u_int8_t org_code[3];
u_int16_t ether_type;
- } type_snap __packed;
+ } __packed type_snap;
struct {
u_int8_t control;
u_int8_t control_ext;
- } type_raw __packed;
- } llc_un /* XXX __packed ??? */;
+ } __packed type_raw;
+ } __packed llc_un;
} __packed;
struct frmrinfo {
@@ -114,6 +114,10 @@ struct frmrinfo {
#define LLC_FRMRLEN 7
#define LLC_SNAPFRAMELEN 8
+#ifdef CTASSERT
+CTASSERT(sizeof (struct llc) == LLC_SNAPFRAMELEN);
+#endif
+
/*
* Unnumbered LLC format commands
*/
OpenPOWER on IntegriCloud