Use FreeBDS standard __packed as opposed to the gcc centric

__attribute__(__packed__).
This commit is contained in:
Warner Losh 2006-12-01 18:18:35 +00:00
parent ab96db105f
commit a0858e10ac

View File

@ -217,7 +217,7 @@ struct bstp_cbpdu {
uint16_t cbu_hellotime; /* hello time */
uint16_t cbu_forwarddelay; /* forwarding delay */
uint8_t cbu_versionlen; /* version 1 length */
} __attribute__((__packed__));
} __packed__;
#define BSTP_BPDU_STP_LEN (3 + 35) /* LLC + STP pdu */
#define BSTP_BPDU_RSTP_LEN (3 + 36) /* LLC + RSTP pdu */
@ -229,7 +229,7 @@ struct bstp_tbpdu {
uint16_t tbu_protoid; /* protocol id */
uint8_t tbu_protover; /* protocol version */
uint8_t tbu_bpdutype; /* message type */
} __attribute__((__packed__));
} __packed;
/*
* Timekeeping structure used in spanning tree code.