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/serverpacket.c | |
parent | 1a834be1ce792252d55b090ee806a466fe9ac4fa (diff) |
Use standard C99 types
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) /* send a packet to a specific arp address and ip address by creating our own ip packet */ static int send_packet_to_client(struct dhcpMessage *payload, int force_broadcast) { - unsigned char *chaddr; - u_int32_t ciaddr; + uint8_t *chaddr; + uint32_t ciaddr; if (force_broadcast) { DEBUG(LOG_INFO, "broadcasting packet to client (NAK)"); @@ -108,8 +108,8 @@ int sendOffer(struct dhcpMessage *oldpacket) { struct dhcpMessage packet; struct dhcpOfferedAddr *lease = NULL; - u_int32_t req_align, lease_time_align = server_config.lease; - unsigned char *req, *lease_time; + uint32_t req_align, lease_time_align = server_config.lease; + uint8_t *req, *lease_time; struct option_set *curr; struct in_addr addr; @@ -196,12 +196,12 @@ int sendNAK(struct dhcpMessage *oldpacket) } -int sendACK(struct dhcpMessage *oldpacket, u_int32_t yiaddr) +int sendACK(struct dhcpMessage *oldpacket, uint32_t yiaddr) { struct dhcpMessage packet; struct option_set *curr; - unsigned char *lease_time; - u_int32_t lease_time_align = server_config.lease; + uint8_t *lease_time; + uint32_t lease_time_align = server_config.lease; struct in_addr addr; init_packet(&packet, oldpacket, DHCPACK); |