network: dhcp6pd: fix the default value of subnet ID
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Oct 2021 06:49:26 +0000 (15:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Oct 2021 12:38:29 +0000 (21:38 +0900)
The type of dhcp6_pd_subnet_id is int64_t.

src/network/networkd-network.c

index 798f4099297c3f87ff64b54d352d3a228fcbb211..3b8e508ee8ba8b6c7c88846ef30ee56fd37d98ff 100644 (file)
@@ -409,7 +409,7 @@ int network_load_one(Manager *manager, OrderedHashmap **networks, const char *fi
                 .dhcp6_pd_announce = true,
                 .dhcp6_pd_assign = true,
                 .dhcp6_pd_manage_temporary_address = true,
-                .dhcp6_pd_subnet_id = UINT64_MAX,
+                .dhcp6_pd_subnet_id = -1,
                 .dhcp6_pd_route_metric = DHCP6PD_ROUTE_METRIC,
 
                 .dhcp_server_bind_to_interface = true,