summaryrefslogtreecommitdiff
path: root/include/net6.h
diff options
context:
space:
mode:
authorEhsan Mohandesi <[email protected]>2023-05-18 11:24:39 -0700
committerTom Rini <[email protected]>2023-07-27 13:39:07 -0400
commit1196e5241d9e0167e668af42d4327d483cf052ae (patch)
treee0e982a9a09839eff48d650a751fb6e024ba1be3 /include/net6.h
parenta29df56eab4ad7957649834c1120c69ce03115ee (diff)
net: ipv6: network protocol structures should be packed
The structure icmp6_ra_prefix_info needs to be packed because it is read from a network stream. Signed-off-by: Ehsan Mohandesi <[email protected]> Reviewed-by: Viacheslav Mitrofanov <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
Diffstat (limited to 'include/net6.h')
-rw-r--r--include/net6.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net6.h b/include/net6.h
index beafc053386..1e766aa7209 100644
--- a/include/net6.h
+++ b/include/net6.h
@@ -204,7 +204,7 @@ struct icmp6_ra_prefix_info {
* be initialized to zero by the sender and ignored by the receiver.
*/
struct in6_addr prefix;
-};
+} __packed;
extern struct in6_addr const net_null_addr_ip6; /* NULL IPv6 address */
extern struct in6_addr net_gateway6; /* Our gateways IPv6 address */