aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpd.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-01-30 23:45:53 +0000
committerEric Andersen <andersen@codepoet.org>2004-01-30 23:45:53 +0000
commitad95373efcd7eaa4d641a7a821e5b05fb2d31e1d (patch)
tree59f5094313c8ee69e48f632a217835a8bb36bda6 /networking/udhcp/dhcpd.h
parent1a834be1ce792252d55b090ee806a466fe9ac4fa (diff)
downloadbusybox-ad95373efcd7eaa4d641a7a821e5b05fb2d31e1d.tar.gz
Use standard C99 types
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r--networking/udhcp/dhcpd.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h
index d53a809ca..925634461 100644
--- a/networking/udhcp/dhcpd.h
+++ b/networking/udhcp/dhcpd.h
@@ -89,24 +89,24 @@
#define SNAME_FIELD 2
/* miscellaneous defines */
-#define MAC_BCAST_ADDR (unsigned char *) "\xff\xff\xff\xff\xff\xff"
+#define MAC_BCAST_ADDR (uint8_t *) "\xff\xff\xff\xff\xff\xff"
#define OPT_CODE 0
#define OPT_LEN 1
#define OPT_DATA 2
struct option_set {
- unsigned char *data;
+ uint8_t *data;
struct option_set *next;
};
struct server_config_t {
- u_int32_t server; /* Our IP, in network order */
- u_int32_t start; /* Start address of leases, network order */
- u_int32_t end; /* End of leases, network order */
+ uint32_t server; /* Our IP, in network order */
+ uint32_t start; /* Start address of leases, network order */
+ uint32_t end; /* End of leases, network order */
struct option_set *options; /* List of DHCP options loaded from the config file */
char *interface; /* The name of the interface to use */
int ifindex; /* Index number of the interface to use */
- unsigned char arp[6]; /* Our arp address */
+ uint8_t arp[6]; /* Our arp address */
unsigned long lease; /* lease time in seconds (host order) */
unsigned long max_leases; /* maximum number of leases (including reserved address) */
char remaining; /* should the lease file be interpreted as lease time remaining, or
@@ -121,7 +121,7 @@ struct server_config_t {
char *lease_file;
char *pidfile;
char *notify_file; /* What to run whenever leases are written */
- u_int32_t siaddr; /* next server bootp option */
+ uint32_t siaddr; /* next server bootp option */
char *sname; /* bootp server name */
char *boot_file; /* bootp boot file option */
};