diff options
Diffstat (limited to 'networking/udhcp/serverpacket.c')
-rw-r--r-- | networking/udhcp/serverpacket.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/udhcp/serverpacket.c b/networking/udhcp/serverpacket.c index 32d3c8098..d39e6ba17 100644 --- a/networking/udhcp/serverpacket.c +++ b/networking/udhcp/serverpacket.c | |||
@@ -43,8 +43,8 @@ static int send_packet_to_relay(struct dhcpMessage *payload) | |||
43 | /* send a packet to a specific arp address and ip address by creating our own ip packet */ | 43 | /* send a packet to a specific arp address and ip address by creating our own ip packet */ |
44 | static int send_packet_to_client(struct dhcpMessage *payload, int force_broadcast) | 44 | static int send_packet_to_client(struct dhcpMessage *payload, int force_broadcast) |
45 | { | 45 | { |
46 | unsigned char *chaddr; | 46 | uint8_t *chaddr; |
47 | u_int32_t ciaddr; | 47 | uint32_t ciaddr; |
48 | 48 | ||
49 | if (force_broadcast) { | 49 | if (force_broadcast) { |
50 | DEBUG(LOG_INFO, "broadcasting packet to client (NAK)"); | 50 | DEBUG(LOG_INFO, "broadcasting packet to client (NAK)"); |
@@ -108,8 +108,8 @@ int sendOffer(struct dhcpMessage *oldpacket) | |||
108 | { | 108 | { |
109 | struct dhcpMessage packet; | 109 | struct dhcpMessage packet; |
110 | struct dhcpOfferedAddr *lease = NULL; | 110 | struct dhcpOfferedAddr *lease = NULL; |
111 | u_int32_t req_align, lease_time_align = server_config.lease; | 111 | uint32_t req_align, lease_time_align = server_config.lease; |
112 | unsigned char *req, *lease_time; | 112 | uint8_t *req, *lease_time; |
113 | struct option_set *curr; | 113 | struct option_set *curr; |
114 | struct in_addr addr; | 114 | struct in_addr addr; |
115 | 115 | ||
@@ -196,12 +196,12 @@ int sendNAK(struct dhcpMessage *oldpacket) | |||
196 | } | 196 | } |
197 | 197 | ||
198 | 198 | ||
199 | int sendACK(struct dhcpMessage *oldpacket, u_int32_t yiaddr) | 199 | int sendACK(struct dhcpMessage *oldpacket, uint32_t yiaddr) |
200 | { | 200 | { |
201 | struct dhcpMessage packet; | 201 | struct dhcpMessage packet; |
202 | struct option_set *curr; | 202 | struct option_set *curr; |
203 | unsigned char *lease_time; | 203 | uint8_t *lease_time; |
204 | u_int32_t lease_time_align = server_config.lease; | 204 | uint32_t lease_time_align = server_config.lease; |
205 | struct in_addr addr; | 205 | struct in_addr addr; |
206 | 206 | ||
207 | init_packet(&packet, oldpacket, DHCPACK); | 207 | init_packet(&packet, oldpacket, DHCPACK); |