diff --git a/repos/os/include/net/ipv4.h b/repos/os/include/net/ipv4.h index 3e71265905..8ebaac33d1 100644 --- a/repos/os/include/net/ipv4.h +++ b/repos/os/include/net/ipv4.h @@ -43,7 +43,8 @@ struct Net::Ipv4_address : Network_address Ipv4_address(void *src) : Network_address(src) { } bool valid() const { return *this != Ipv4_address(); } -}; +} +__attribute__((packed)); /** diff --git a/repos/os/include/net/netaddress.h b/repos/os/include/net/netaddress.h index 9ec7375601..e94852f68a 100644 --- a/repos/os/include/net/netaddress.h +++ b/repos/os/include/net/netaddress.h @@ -80,6 +80,7 @@ struct Net::Network_address bool operator!=(const Network_address &other) const { return !(*this == other); } -}; +} +__attribute__((packed)); #endif /* _NET__NETADDRESS_H_ */