gdhcp: Returned IP address is already in host byte order
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 12 Oct 2012 17:13:22 +0000 (20:13 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 15 Oct 2012 06:24:34 +0000 (09:24 +0300)
gdhcp/ipv4ll.c

index 007ffe6..17ab3d5 100644 (file)
@@ -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);
 }
 
 /**