aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-18 19:51:32 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-18 19:51:32 +0000
commit5a3395bc01cd4b11309595a6ecdaf32f8279f378 (patch)
tree1e63aa591a05e9ec75aefdcd639ca4188e583648 /networking/udhcp/dhcpc.h
parentabfc4cf6d8b9c59724aceb70df5081a1368fdb62 (diff)
downloadbusybox-w32-5a3395bc01cd4b11309595a6ecdaf32f8279f378.tar.gz
busybox-w32-5a3395bc01cd4b11309595a6ecdaf32f8279f378.tar.bz2
busybox-w32-5a3395bc01cd4b11309595a6ecdaf32f8279f378.zip
udhcp: fix indentation and style.
Eliminate (group) a lot of smallish *.h files Remove lots of unneeded #includes
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r--networking/udhcp/dhcpc.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h
index 6cf59a950..d5c8a4ba5 100644
--- a/networking/udhcp/dhcpc.h
+++ b/networking/udhcp/dhcpc.h
@@ -3,9 +3,6 @@
3#ifndef _DHCPC_H 3#ifndef _DHCPC_H
4#define _DHCPC_H 4#define _DHCPC_H
5 5
6/* grab define DEFAULT_SCRIPT */
7#include "libbb_udhcp.h"
8
9#define INIT_SELECTING 0 6#define INIT_SELECTING 0
10#define REQUESTING 1 7#define REQUESTING 1
11#define BOUND 2 8#define BOUND 2
@@ -15,7 +12,6 @@
15#define RENEW_REQUESTED 6 12#define RENEW_REQUESTED 6
16#define RELEASED 7 13#define RELEASED 7
17 14
18
19struct client_config_t { 15struct client_config_t {
20 char foreground; /* Do not fork */ 16 char foreground; /* Do not fork */
21 char quit_after_lease; /* Quit after obtaining lease */ 17 char quit_after_lease; /* Quit after obtaining lease */
@@ -38,4 +34,15 @@ struct client_config_t {
38extern struct client_config_t client_config; 34extern struct client_config_t client_config;
39 35
40 36
37/*** clientpacket.h ***/
38
39unsigned long random_xid(void);
40int send_discover(unsigned long xid, unsigned long requested);
41int send_selecting(unsigned long xid, unsigned long server, unsigned long requested);
42int send_renew(unsigned long xid, unsigned long server, unsigned long ciaddr);
43int send_renew(unsigned long xid, unsigned long server, unsigned long ciaddr);
44int send_release(unsigned long server, unsigned long ciaddr);
45int get_raw_packet(struct dhcpMessage *payload, int fd);
46
47
41#endif 48#endif