aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-17 11:54:52 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-17 11:54:52 +0200
commitac906fa85e61b4e34161709de777616f858bc945 (patch)
tree7b247714814fd9dcf3fd3dccf954521b29eef5a2 /networking/udhcp/dhcpc.h
parented8982bfc0e9895fe707a5f6152cf184e06f2052 (diff)
downloadbusybox-w32-ac906fa85e61b4e34161709de777616f858bc945.tar.gz
busybox-w32-ac906fa85e61b4e34161709de777616f858bc945.tar.bz2
busybox-w32-ac906fa85e61b4e34161709de777616f858bc945.zip
udhcp: change UDHCP_DEBUG into int, make verbosity selectable with -v
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r--networking/udhcp/dhcpc.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h
index 861e134bd..a7ed779a1 100644
--- a/networking/udhcp/dhcpc.h
+++ b/networking/udhcp/dhcpc.h
@@ -6,12 +6,11 @@
6PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN 6PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
7 7
8struct client_config_t { 8struct client_config_t {
9 uint8_t client_mac[6]; /* Our arp address */ 9 uint8_t client_mac[6]; /* Our mac address */
10 /* TODO: combine flag fields into single "unsigned opt" */ 10 char no_default_options; /* Do not include default options in request */
11 /* (can be set directly to the result of getopt32) */
12 char no_default_options; /* Do not include default optins in request */
13 IF_FEATURE_UDHCP_PORT(uint16_t port;) 11 IF_FEATURE_UDHCP_PORT(uint16_t port;)
14 int ifindex; /* Index number of the interface to use */ 12 int ifindex; /* Index number of the interface to use */
13 int verbose;
15 uint8_t opt_mask[256 / 8]; /* Bitmask of options to send (-O option) */ 14 uint8_t opt_mask[256 / 8]; /* Bitmask of options to send (-O option) */
16 const char *interface; /* The name of the interface to use */ 15 const char *interface; /* The name of the interface to use */
17 char *pidfile; /* Optionally store the process ID */ 16 char *pidfile; /* Optionally store the process ID */
@@ -44,7 +43,7 @@ int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr) FAST_FUNC;
44int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr) FAST_FUNC; 43int send_renew(uint32_t xid, uint32_t server, uint32_t ciaddr) FAST_FUNC;
45int send_release(uint32_t server, uint32_t ciaddr) FAST_FUNC; 44int send_release(uint32_t server, uint32_t ciaddr) FAST_FUNC;
46 45
47int udhcp_recv_raw_packet(struct dhcpMessage *payload, int fd) FAST_FUNC; 46int udhcp_recv_raw_packet(struct dhcpMessage *dhcp_pkt, int fd) FAST_FUNC;
48 47
49POP_SAVED_FUNCTION_VISIBILITY 48POP_SAVED_FUNCTION_VISIBILITY
50 49