diff options
author | Denys Vlasenko | 2009-06-16 10:23:55 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-06-16 10:23:55 +0200 |
commit | 990a617edfd9040594c0889d2dd23eb7ef91c695 (patch) | |
tree | 25a41246927426fa64ffb10217332bc065df8887 /networking/udhcp/socket.c | |
parent | 1d924f59b1854e9638c63a743642e63c1bef38b9 (diff) | |
download | busybox-990a617edfd9040594c0889d2dd23eb7ef91c695.zip busybox-990a617edfd9040594c0889d2dd23eb7ef91c695.tar.gz |
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>
Diffstat (limited to 'networking/udhcp/socket.c')
-rw-r--r-- | networking/udhcp/socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c index edf4355..449fcb7 100644 --- a/networking/udhcp/socket.c +++ b/networking/udhcp/socket.c @@ -37,7 +37,7 @@ #include "common.h" -int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *addr, uint8_t *arp) +int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *arp) { int fd; struct ifreq ifr; @@ -48,7 +48,7 @@ int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t ifr.ifr_addr.sa_family = AF_INET; strncpy_IFNAMSIZ(ifr.ifr_name, interface); - if (addr) { + if (nip) { if (ioctl_or_perror(fd, SIOCGIFADDR, &ifr, "is interface %s up and configured?", interface) ) { @@ -56,7 +56,7 @@ int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t return -1; } our_ip = (struct sockaddr_in *) &ifr.ifr_addr; - *addr = our_ip->sin_addr.s_addr; + *nip = our_ip->sin_addr.s_addr; DEBUG("ip of %s = %s", interface, inet_ntoa(our_ip->sin_addr)); } |