X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=src%2Frouter.c;h=526f9c25b12de4963b890fcc4dcec97ec275b59f;hb=bab0f8f6cd1d6badd8d5189dc50aa1692e107a7a;hp=a23b5305bf65909837b0192a31e4df520cf3f76d;hpb=cb1842c117030e6779f9556cd5d86b1a0ef145d7;p=project%2Fodhcpd.git diff --git a/src/router.c b/src/router.c index a23b530..526f9c2 100644 --- a/src/router.c +++ b/src/router.c @@ -430,7 +430,7 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add minival = (maxival * 3) / 4; - search->lifetime = maxival / 100; + search->lifetime = htonl(maxival / 100); dns.lifetime = search->lifetime; odhcpd_urandom(&msecs, sizeof(msecs));