mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 01:20:16 +01:00
ndisc: mark NMIcmpv6RouterPref enum as _nm_packed
We embed values of this type in structs. Let's pack it to only use one byte.
This commit is contained in:
parent
8a3310043b
commit
de9e570cb1
1 changed files with 1 additions and 1 deletions
|
|
@ -559,7 +559,7 @@ char * nm_utils_format_con_diff_for_audit(GHashTable *diff);
|
|||
/* this enum is compatible with ICMPV6_ROUTER_PREF_* (from <linux/icmpv6.h>,
|
||||
* the values for netlink attribute RTA_PREF) and "enum ndp_route_preference"
|
||||
* from <ndp.h>. */
|
||||
typedef enum {
|
||||
typedef enum _nm_packed {
|
||||
NM_ICMPV6_ROUTER_PREF_MEDIUM = 0x0, /* ICMPV6_ROUTER_PREF_MEDIUM */
|
||||
NM_ICMPV6_ROUTER_PREF_LOW = 0x3, /* ICMPV6_ROUTER_PREF_LOW */
|
||||
NM_ICMPV6_ROUTER_PREF_HIGH = 0x1, /* ICMPV6_ROUTER_PREF_HIGH */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue