diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-16 10:23:01 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-16 10:23:01 +0200 |
commit | 1d924f59b1854e9638c63a743642e63c1bef38b9 (patch) | |
tree | 9cee2a7da051fb217fb610e7509d5dfd3657da47 /networking/udhcp/dumpleases.c | |
parent | 47f2d7ef7d4dbeea19a55f9d73ef826f9d06650f (diff) | |
download | busybox-w32-1d924f59b1854e9638c63a743642e63c1bef38b9.tar.gz busybox-w32-1d924f59b1854e9638c63a743642e63c1bef38b9.tar.bz2 busybox-w32-1d924f59b1854e9638c63a743642e63c1bef38b9.zip |
udhcp: rename fields in struct dhcpOfferedAddr
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dumpleases.c')
-rw-r--r-- | networking/udhcp/dumpleases.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c index 1558f8848..5b98aa5fe 100644 --- a/networking/udhcp/dumpleases.c +++ b/networking/udhcp/dumpleases.c | |||
@@ -61,10 +61,10 @@ int dumpleases_main(int argc UNUSED_PARAM, char **argv) | |||
61 | while (full_read(fd, &lease, sizeof(lease)) == sizeof(lease)) { | 61 | while (full_read(fd, &lease, sizeof(lease)) == sizeof(lease)) { |
62 | const char *fmt = ":%02x" + 1; | 62 | const char *fmt = ":%02x" + 1; |
63 | for (i = 0; i < 6; i++) { | 63 | for (i = 0; i < 6; i++) { |
64 | printf(fmt, lease.chaddr[i]); | 64 | printf(fmt, lease.lease_mac16[i]); |
65 | fmt = ":%02x"; | 65 | fmt = ":%02x"; |
66 | } | 66 | } |
67 | addr.s_addr = lease.yiaddr; | 67 | addr.s_addr = lease.lease_nip; |
68 | /* actually, 15+1 and 19+1, +1 is a space between columns */ | 68 | /* actually, 15+1 and 19+1, +1 is a space between columns */ |
69 | /* lease.hostname is char[20] and is always NUL terminated */ | 69 | /* lease.hostname is char[20] and is always NUL terminated */ |
70 | printf(" %-16s%-20s", inet_ntoa(addr), lease.hostname); | 70 | printf(" %-16s%-20s", inet_ntoa(addr), lease.hostname); |