diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-10-12 20:13:22 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-10-15 09:24:34 +0300 |
commit | 237259bc8bf86aa62d5ad259b804b2f8874b77b0 (patch) | |
tree | c8ac55559a047efe4429960ba9dd92542adac7be /gdhcp | |
parent | 9f0fc7962603344d071f5f34caf9e4efb8707940 (diff) | |
download | connman-237259bc8bf86aa62d5ad259b804b2f8874b77b0.tar.gz connman-237259bc8bf86aa62d5ad259b804b2f8874b77b0.tar.bz2 connman-237259bc8bf86aa62d5ad259b804b2f8874b77b0.zip |
gdhcp: Returned IP address is already in host byte order
Diffstat (limited to 'gdhcp')
-rw-r--r-- | gdhcp/ipv4ll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdhcp/ipv4ll.c b/gdhcp/ipv4ll.c index 007ffe6b..17ab3d59 100644 --- a/gdhcp/ipv4ll.c +++ b/gdhcp/ipv4ll.c @@ -53,7 +53,7 @@ uint32_t ipv4ll_random_ip(int seed) tmp = rand(); tmp = tmp & IN_CLASSB_HOST; } while (tmp > (IN_CLASSB_HOST - 0x0200)); - return ntohl(((LINKLOCAL_ADDR + 0x0100) + tmp)); + return ((LINKLOCAL_ADDR + 0x0100) + tmp); } /** |