summaryrefslogtreecommitdiff
path: root/src/libsystemd-dhcp/dhcp-client.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-12-20 17:16:10 +0200
committerTom Gundersen <teg@jklm.no>2013-12-22 10:48:31 +0100
commit3b349af69aab440a625fedb21377e2bdc461098e (patch)
tree58c055f88797df2619d4af94ba09faa750569d67 /src/libsystemd-dhcp/dhcp-client.c
parenteb53c37e2eb1ff9e2dbf370985dd53c62a98fa66 (diff)
libsystemd-dhcp: Use be32_t for IP addresses in network order.
Diffstat (limited to 'src/libsystemd-dhcp/dhcp-client.c')
-rw-r--r--src/libsystemd-dhcp/dhcp-client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsystemd-dhcp/dhcp-client.c b/src/libsystemd-dhcp/dhcp-client.c
index c0c348cbf1..fe41067600 100644
--- a/src/libsystemd-dhcp/dhcp-client.c
+++ b/src/libsystemd-dhcp/dhcp-client.c
@@ -36,10 +36,10 @@ struct DHCPLease {
uint32_t t1;
uint32_t t2;
uint32_t lifetime;
- uint32_t address;
- uint32_t server_address;
- uint32_t subnet_mask;
- uint32_t router;
+ be32_t address;
+ be32_t server_address;
+ be32_t subnet_mask;
+ be32_t router;
};
typedef struct DHCPLease DHCPLease;
@@ -54,7 +54,7 @@ struct sd_dhcp_client {
sd_event_source *receive_message;
uint8_t *req_opts;
size_t req_opts_size;
- uint32_t last_addr;
+ be32_t last_addr;
struct ether_addr mac_addr;
uint32_t xid;
usec_t start_time;