Skip to content

Commit

Permalink
networkd: Use dhcp correct type for IP port (systemd#4840)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssahani authored and poettering committed Dec 6, 2016
1 parent 10452f7 commit 9c77d10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/network/networkd-network-gperf.gperf
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ DHCP.RouteMetric, config_parse_unsigned,
DHCP.RouteTable, config_parse_dhcp_route_table, 0, offsetof(Network, dhcp_route_table)
DHCP.UseTimezone, config_parse_bool, 0, offsetof(Network, dhcp_use_timezone)
DHCP.IAID, config_parse_iaid, 0, offsetof(Network, iaid)
DHCP.ListenPort, config_parse_uint32, 0, offsetof(Network, dhcp_client_port)
DHCP.ListenPort, config_parse_uint16, 0, offsetof(Network, dhcp_client_port)
IPv6AcceptRA.UseDNS, config_parse_bool, 0, offsetof(Network, ipv6_accept_ra_use_dns)
IPv6AcceptRA.UseDomains, config_parse_dhcp_use_domains, 0, offsetof(Network, ipv6_accept_ra_use_domains)
IPv6AcceptRA.RouteTable, config_parse_dhcp_route_table, 0, offsetof(Network, ipv6_accept_ra_route_table)
Expand Down
2 changes: 1 addition & 1 deletion src/network/networkd-network.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct Network {
char *dhcp_hostname;
unsigned dhcp_route_metric;
uint32_t dhcp_route_table;
uint32_t dhcp_client_port;
uint16_t dhcp_client_port;
bool dhcp_send_hostname;
bool dhcp_broadcast;
bool dhcp_critical;
Expand Down

0 comments on commit 9c77d10

Please sign in to comment.