summaryrefslogtreecommitdiff
path: root/gdhcp
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-10-12 17:13:22 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-15 06:24:34 (GMT)
commit237259bc8bf86aa62d5ad259b804b2f8874b77b0 (patch)
treec8ac55559a047efe4429960ba9dd92542adac7be /gdhcp
parent9f0fc7962603344d071f5f34caf9e4efb8707940 (diff)
downloadconnman-237259bc8bf86aa62d5ad259b804b2f8874b77b0.zip
connman-237259bc8bf86aa62d5ad259b804b2f8874b77b0.tar.gz
connman-237259bc8bf86aa62d5ad259b804b2f8874b77b0.tar.bz2
gdhcp: Returned IP address is already in host byte order
Diffstat (limited to 'gdhcp')
-rw-r--r--gdhcp/ipv4ll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdhcp/ipv4ll.c b/gdhcp/ipv4ll.c
index 007ffe6..17ab3d5 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);
}
/**