Skip to content
This repository was archived by the owner on Nov 15, 2025. It is now read-only.

Commit 132be2b

Browse files
committed
network: use uint32_t instead of unsigned for route priority
1 parent d06661a commit 132be2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/network/networkd-network-gperf.gperf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ DHCPv4.MaxAttempts, config_parse_dhcp_max_attempts,
178178
DHCPv4.UserClass, config_parse_dhcp_user_class, AF_INET, offsetof(Network, dhcp_user_class)
179179
DHCPv4.DUIDType, config_parse_duid_type, 0, offsetof(Network, duid)
180180
DHCPv4.DUIDRawData, config_parse_duid_rawdata, 0, offsetof(Network, duid)
181-
DHCPv4.RouteMetric, config_parse_unsigned, 0, offsetof(Network, dhcp_route_metric)
181+
DHCPv4.RouteMetric, config_parse_uint32, 0, offsetof(Network, dhcp_route_metric)
182182
DHCPv4.RouteTable, config_parse_section_route_table, 0, 0
183183
DHCPv4.UseTimezone, config_parse_bool, 0, offsetof(Network, dhcp_use_timezone)
184184
DHCPv4.IAID, config_parse_iaid, 0, 0
@@ -394,7 +394,7 @@ DHCP.VendorClassIdentifier, config_parse_string,
394394
DHCP.UserClass, config_parse_dhcp_user_class, AF_INET, offsetof(Network, dhcp_user_class)
395395
DHCP.DUIDType, config_parse_duid_type, 0, offsetof(Network, duid)
396396
DHCP.DUIDRawData, config_parse_duid_rawdata, 0, offsetof(Network, duid)
397-
DHCP.RouteMetric, config_parse_unsigned, 0, offsetof(Network, dhcp_route_metric)
397+
DHCP.RouteMetric, config_parse_uint32, 0, offsetof(Network, dhcp_route_metric)
398398
DHCP.RouteTable, config_parse_section_route_table, 0, 0
399399
DHCP.UseTimezone, config_parse_bool, 0, offsetof(Network, dhcp_use_timezone)
400400
DHCP.IAID, config_parse_iaid, 0, 0

src/network/networkd-network.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct Network {
9595
char **dhcp_user_class;
9696
char *dhcp_hostname;
9797
uint64_t dhcp_max_attempts;
98-
unsigned dhcp_route_metric;
98+
uint32_t dhcp_route_metric;
9999
uint32_t dhcp_route_table;
100100
uint32_t dhcp_fallback_lease_lifetime;
101101
uint32_t dhcp_route_mtu;

0 commit comments

Comments
 (0)