summaryrefslogtreecommitdiffstats
path: root/dhcp.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-09 10:12:59 +0000
committerRoy Marples <roy@marples.name>2008-01-09 10:12:59 +0000
commit3cea28afc8608614ac7e6651f41941a5fe4ce732 (patch)
tree027942372ad841745a8522fa89109aaab0d233e7 /dhcp.h
parent890fe1c5a47f270316fef8b419d8aac587e5cf92 (diff)
downloaddhcpcd-3cea28afc8608614ac7e6651f41941a5fe4ce732.tar.xz
Default all int entries in the dhcp header to unsigned.
Diffstat (limited to 'dhcp.h')
-rw-r--r--dhcp.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/dhcp.h b/dhcp.h
index 2987fc64..1a7de892 100644
--- a/dhcp.h
+++ b/dhcp.h
@@ -189,13 +189,13 @@ typedef struct dhcpmessage_t
unsigned char hwtype; /* hardware address type */
unsigned char hwlen; /* hardware address length */
unsigned char hwopcount; /* should be zero in client message */
- int32_t xid; /* transaction id */
- int16_t secs; /* elapsed time in sec. from boot */
- int16_t flags;
- int32_t ciaddr; /* (previously allocated) client IP */
- int32_t yiaddr; /* 'your' client IP address */
- int32_t siaddr; /* should be zero in client's messages */
- int32_t giaddr; /* should be zero in client's messages */
+ uint32_t xid; /* transaction id */
+ uint16_t secs; /* elapsed time in sec. from boot */
+ uint16_t flags;
+ uint32_t ciaddr; /* (previously allocated) client IP */
+ uint32_t yiaddr; /* 'your' client IP address */
+ uint32_t siaddr; /* should be zero in client's messages */
+ uint32_t giaddr; /* should be zero in client's messages */
unsigned char chaddr[DHCP_CHADDR_LEN]; /* client's hardware address */
unsigned char servername[SERVERNAME_LEN]; /* server host name */
unsigned char bootfile[BOOTFILE_LEN]; /* boot file name */