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/packet.h | |
parent | 1a834be1ce792252d55b090ee806a466fe9ac4fa (diff) |
Use standard C99 types
Diffstat (limited to 'networking/udhcp/packet.h')
-rw-r--r-- | networking/udhcp/packet.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/networking/udhcp/packet.h b/networking/udhcp/packet.h index 1a263ef8b..22c4d09c3 100644 --- a/networking/udhcp/packet.h +++ b/networking/udhcp/packet.h @@ -5,22 +5,22 @@ #include <netinet/ip.h> struct dhcpMessage { - u_int8_t op; - u_int8_t htype; - u_int8_t hlen; - u_int8_t hops; - u_int32_t xid; - u_int16_t secs; - u_int16_t flags; - u_int32_t ciaddr; - u_int32_t yiaddr; - u_int32_t siaddr; - u_int32_t giaddr; - u_int8_t chaddr[16]; - u_int8_t sname[64]; - u_int8_t file[128]; - u_int32_t cookie; - u_int8_t options[308]; /* 312 - cookie */ + uint8_t op; + uint8_t htype; + uint8_t hlen; + uint8_t hops; + uint32_t xid; + uint16_t secs; + uint16_t flags; + uint32_t ciaddr; + uint32_t yiaddr; + uint32_t siaddr; + uint32_t giaddr; + uint8_t chaddr[16]; + uint8_t sname[64]; + uint8_t file[128]; + uint32_t cookie; + uint8_t options[308]; /* 312 - cookie */ }; struct udp_dhcp_packet { @@ -31,11 +31,11 @@ struct udp_dhcp_packet { void init_header(struct dhcpMessage *packet, char type); int get_packet(struct dhcpMessage *packet, int fd); -u_int16_t checksum(void *addr, int count); -int raw_packet(struct dhcpMessage *payload, u_int32_t source_ip, int source_port, - u_int32_t dest_ip, int dest_port, unsigned char *dest_arp, int ifindex); -int kernel_packet(struct dhcpMessage *payload, u_int32_t source_ip, int source_port, - u_int32_t dest_ip, int dest_port); +uint16_t checksum(void *addr, int count); +int raw_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port, + uint32_t dest_ip, int dest_port, uint8_t *dest_arp, int ifindex); +int kernel_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port, + uint32_t dest_ip, int dest_port); #endif |