projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f0fc79
)
gdhcp: Returned IP address is already in host byte order
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Fri, 12 Oct 2012 17:13:22 +0000
(20:13 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Mon, 15 Oct 2012 06:24:34 +0000
(09:24 +0300)
gdhcp/ipv4ll.c
patch
|
blob
|
history
diff --git
a/gdhcp/ipv4ll.c
b/gdhcp/ipv4ll.c
index
007ffe6
..
17ab3d5
100644
(file)
--- 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
);
}
/**