udhcp: rename giaddr to gateway_nip and server to server_nip
"nip" stands for "IP in network order"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index 61e4a1d..09524e2 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -94,7 +94,7 @@
read_leases(server_config.lease_file);
if (udhcp_read_interface(server_config.interface, &server_config.ifindex,
- &server_config.server, server_config.arp)) {
+ &server_config.server_nip, server_config.arp)) {
retval = 1;
goto ret;
}
@@ -202,7 +202,7 @@
if (server_id) {
/* SELECTING State */
DEBUG("server_id = %08x", ntohl(server_id_aligned));
- if (server_id_aligned == server_config.server
+ if (server_id_aligned == server_config.server_nip
&& requested
&& requested_aligned == lease->lease_nip
) {