diff --git a/net/byteorder.hh b/net/byteorder.hh index a3f8c40406..52f29f76b9 100644 --- a/net/byteorder.hh +++ b/net/byteorder.hh @@ -58,13 +58,9 @@ inline int32_t hton(int32_t x) { return htonl(x); } inline int64_t ntoh(int64_t x) { return ntohq(x); } inline int64_t hton(int64_t x) { return htonq(x); } -// Define net::packed<> using unaligned<> from unaligned.hh. -template -struct packed : public unaligned { - using unaligned::unaligned; // inherit constructors - template - void adjust_endianness(Adjuster a) { a(this->raw); } -} __attribute__((packed)); +// Deprecated alias net::packed<> for unaligned<> from unaligned.hh. +// TODO: get rid of this alias. +template using packed = unaligned; template inline T ntoh(const packed& x) {