sd-dhcp: adjust type of elements in duid

These values should be stored in network byte order.
This commit is contained in:
Yu Watanabe 2018-08-07 12:07:12 +09:00
parent 319b94bca7
commit 9d7b8c66f5

View file

@ -27,18 +27,18 @@ struct duid {
union {
struct {
/* DUID_TYPE_LLT */
uint16_t htype;
uint32_t time;
be16_t htype;
be32_t time;
uint8_t haddr[0];
} _packed_ llt;
struct {
/* DUID_TYPE_EN */
uint32_t pen;
be32_t pen;
uint8_t id[8];
} _packed_ en;
struct {
/* DUID_TYPE_LL */
int16_t htype;
be16_t htype;
uint8_t haddr[0];
} _packed_ ll;
struct {