From de9e570cb1f15050b92acde4c896afcfde943636 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 21 Jan 2021 08:56:43 +0100 Subject: [PATCH] ndisc: mark NMIcmpv6RouterPref enum as _nm_packed We embed values of this type in structs. Let's pack it to only use one byte. --- src/nm-core-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-core-utils.h b/src/nm-core-utils.h index f4fe5f673c..a3f47874fd 100644 --- a/src/nm-core-utils.h +++ b/src/nm-core-utils.h @@ -559,7 +559,7 @@ char * nm_utils_format_con_diff_for_audit(GHashTable *diff); /* this enum is compatible with ICMPV6_ROUTER_PREF_* (from , * the values for netlink attribute RTA_PREF) and "enum ndp_route_preference" * from . */ -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 */