From: Yu Watanabe Date: Tue, 7 Aug 2018 03:07:12 +0000 (+0900) Subject: sd-dhcp: adjust type of elements in duid X-Git-Tag: v240~807^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d7b8c66f5358a0b60949c6c2a063d46159ee0db;p=thirdparty%2Fsystemd.git sd-dhcp: adjust type of elements in duid These values should be stored in network byte order. --- diff --git a/src/libsystemd-network/dhcp-identifier.h b/src/libsystemd-network/dhcp-identifier.h index add546f31c1..cebfa8f4a83 100644 --- a/src/libsystemd-network/dhcp-identifier.h +++ b/src/libsystemd-network/dhcp-identifier.h @@ -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 {