]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: set field size for several flags
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 22 Jul 2019 02:24:15 +0000 (11:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 22 Jul 2019 02:34:14 +0000 (11:34 +0900)
src/network/networkd-link.h

index cd88388015b2220d9d82938ec8c28a9ffd48a81d..91e2bf06b50c55bd757d703ae9487eebf892b7b0 100644 (file)
@@ -87,8 +87,8 @@ typedef struct Link {
         char *lease_file;
         uint32_t original_mtu;
         unsigned dhcp4_messages;
-        bool dhcp4_configured;
-        bool dhcp6_configured;
+        bool dhcp4_configured:1;
+        bool dhcp6_configured:1;
 
         unsigned ndisc_messages;
         bool ndisc_configured;
@@ -97,11 +97,10 @@ typedef struct Link {
         bool ipv4ll_address:1;
         bool ipv4ll_route:1;
 
-        bool neighbors_configured;
-
-        bool static_routes_configured;
-        bool routing_policy_rules_configured;
-        bool setting_mtu;
+        bool neighbors_configured:1;
+        bool static_routes_configured:1;
+        bool routing_policy_rules_configured:1;
+        bool setting_mtu:1;
 
         LIST_HEAD(Address, pool_addresses);