diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-01-30 23:45:53 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-01-30 23:45:53 +0000 |
commit | ad95373efcd7eaa4d641a7a821e5b05fb2d31e1d (patch) | |
tree | 59f5094313c8ee69e48f632a217835a8bb36bda6 /networking/udhcp/dhcpd.h | |
parent | 1a834be1ce792252d55b090ee806a466fe9ac4fa (diff) | |
download | busybox-w32-ad95373efcd7eaa4d641a7a821e5b05fb2d31e1d.tar.gz busybox-w32-ad95373efcd7eaa4d641a7a821e5b05fb2d31e1d.tar.bz2 busybox-w32-ad95373efcd7eaa4d641a7a821e5b05fb2d31e1d.zip |
Use standard C99 types
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r-- | networking/udhcp/dhcpd.h | 14 |
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 @@ | |||
89 | #define SNAME_FIELD 2 | 89 | #define SNAME_FIELD 2 |
90 | 90 | ||
91 | /* miscellaneous defines */ | 91 | /* miscellaneous defines */ |
92 | #define MAC_BCAST_ADDR (unsigned char *) "\xff\xff\xff\xff\xff\xff" | 92 | #define MAC_BCAST_ADDR (uint8_t *) "\xff\xff\xff\xff\xff\xff" |
93 | #define OPT_CODE 0 | 93 | #define OPT_CODE 0 |
94 | #define OPT_LEN 1 | 94 | #define OPT_LEN 1 |
95 | #define OPT_DATA 2 | 95 | #define OPT_DATA 2 |
96 | 96 | ||
97 | struct option_set { | 97 | struct option_set { |
98 | unsigned char *data; | 98 | uint8_t *data; |
99 | struct option_set *next; | 99 | struct option_set *next; |
100 | }; | 100 | }; |
101 | 101 | ||
102 | struct server_config_t { | 102 | struct server_config_t { |
103 | u_int32_t server; /* Our IP, in network order */ | 103 | uint32_t server; /* Our IP, in network order */ |
104 | u_int32_t start; /* Start address of leases, network order */ | 104 | uint32_t start; /* Start address of leases, network order */ |
105 | u_int32_t end; /* End of leases, network order */ | 105 | uint32_t end; /* End of leases, network order */ |
106 | struct option_set *options; /* List of DHCP options loaded from the config file */ | 106 | struct option_set *options; /* List of DHCP options loaded from the config file */ |
107 | char *interface; /* The name of the interface to use */ | 107 | char *interface; /* The name of the interface to use */ |
108 | int ifindex; /* Index number of the interface to use */ | 108 | int ifindex; /* Index number of the interface to use */ |
109 | unsigned char arp[6]; /* Our arp address */ | 109 | uint8_t arp[6]; /* Our arp address */ |
110 | unsigned long lease; /* lease time in seconds (host order) */ | 110 | unsigned long lease; /* lease time in seconds (host order) */ |
111 | unsigned long max_leases; /* maximum number of leases (including reserved address) */ | 111 | unsigned long max_leases; /* maximum number of leases (including reserved address) */ |
112 | char remaining; /* should the lease file be interpreted as lease time remaining, or | 112 | char remaining; /* should the lease file be interpreted as lease time remaining, or |
@@ -121,7 +121,7 @@ struct server_config_t { | |||
121 | char *lease_file; | 121 | char *lease_file; |
122 | char *pidfile; | 122 | char *pidfile; |
123 | char *notify_file; /* What to run whenever leases are written */ | 123 | char *notify_file; /* What to run whenever leases are written */ |
124 | u_int32_t siaddr; /* next server bootp option */ | 124 | uint32_t siaddr; /* next server bootp option */ |
125 | char *sname; /* bootp server name */ | 125 | char *sname; /* bootp server name */ |
126 | char *boot_file; /* bootp boot file option */ | 126 | char *boot_file; /* bootp boot file option */ |
127 | }; | 127 | }; |