mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-26 13:10:34 +01:00
ndisc: pack structs for lndp options
There is no actual change in behavior, because "struct nd_opt_hdr"
as two uint8_t, so in practice this struct was always packed already.
But make it explicit, because it's clear that we use these structs
to set the binary message and they need a well defined (packed) memory
layout.
(cherry picked from commit e3c464b56c)
This commit is contained in:
parent
dc0d4ec817
commit
933e6470fc
1 changed files with 2 additions and 2 deletions
|
|
@ -339,7 +339,7 @@ _ndp_msg_add_option(struct ndp_msg *msg, int len)
|
|||
|
||||
#define NM_ND_OPT_RDNSS 25
|
||||
|
||||
typedef struct {
|
||||
typedef struct _nm_packed {
|
||||
struct nd_opt_hdr header;
|
||||
uint16_t reserved;
|
||||
uint32_t lifetime;
|
||||
|
|
@ -354,7 +354,7 @@ G_STATIC_ASSERT(sizeof(NMLndpRdnssOption) == 8u);
|
|||
|
||||
#define NM_ND_OPT_DNSSL 31
|
||||
|
||||
typedef struct {
|
||||
typedef struct _nm_packed {
|
||||
struct nd_opt_hdr header;
|
||||
uint16_t reserved;
|
||||
uint32_t lifetime;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue