diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 13:24:03 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 13:24:03 +0200 |
commit | 6947d2c7e194e3be31eed1c75260e15fca1a2568 (patch) | |
tree | ff4d67b49e0e7e02e29ecc090db619a39b24498d /networking/udhcp/common.h | |
parent | 2b0e95780863da44f6a9244699ece8620a599e19 (diff) | |
download | busybox-w32-6947d2c7e194e3be31eed1c75260e15fca1a2568.tar.gz busybox-w32-6947d2c7e194e3be31eed1c75260e15fca1a2568.tar.bz2 busybox-w32-6947d2c7e194e3be31eed1c75260e15fca1a2568.zip |
udhcp: logging improvements, field and variable renames
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.h')
-rw-r--r-- | networking/udhcp/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index a01597f68..e88cfb1c7 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h | |||
@@ -93,14 +93,14 @@ int udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uin | |||
93 | int udhcp_raw_socket(int ifindex) FAST_FUNC; | 93 | int udhcp_raw_socket(int ifindex) FAST_FUNC; |
94 | int udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) FAST_FUNC; | 94 | int udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) FAST_FUNC; |
95 | /* Returns 1 if no reply received */ | 95 | /* Returns 1 if no reply received */ |
96 | int arpping(uint32_t test_ip, | 96 | int arpping(uint32_t test_nip, |
97 | const uint8_t *safe_mac, | 97 | const uint8_t *safe_mac, |
98 | uint32_t from_ip, | 98 | uint32_t from_ip, |
99 | uint8_t *from_mac, | 99 | uint8_t *from_mac, |
100 | const char *interface) FAST_FUNC; | 100 | const char *interface) FAST_FUNC; |
101 | 101 | ||
102 | #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1 | 102 | #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1 |
103 | extern int dhcp_verbose; | 103 | extern unsigned dhcp_verbose; |
104 | # define log1(...) do { if (dhcp_verbose >= 1) bb_info_msg(__VA_ARGS__); } while (0) | 104 | # define log1(...) do { if (dhcp_verbose >= 1) bb_info_msg(__VA_ARGS__); } while (0) |
105 | # if CONFIG_UDHCP_DEBUG >= 2 | 105 | # if CONFIG_UDHCP_DEBUG >= 2 |
106 | void udhcp_dump_packet(struct dhcp_packet *packet) FAST_FUNC; | 106 | void udhcp_dump_packet(struct dhcp_packet *packet) FAST_FUNC; |