From: Jukka Rissanen Date: Fri, 12 Oct 2012 17:13:22 +0000 (+0300) Subject: gdhcp: Returned IP address is already in host byte order X-Git-Tag: 1.9~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=237259bc8bf86aa62d5ad259b804b2f8874b77b0;p=platform%2Fupstream%2Fconnman.git gdhcp: Returned IP address is already in host byte order --- 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); } /**