]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv6/route.c
[IPV6]: Misc endianness annotations.
[mirror_ubuntu-bionic-kernel.git] / net / ipv6 / route.c
index a6472cb9054cb8193874ca7d4b03420e7e360c82..0bf17a3cf0853020bd60961959fb5720de85543a 100644 (file)
@@ -440,7 +440,7 @@ int rt6_route_rcv(struct net_device *dev, u8 *opt, int len,
        if (pref == ICMPV6_ROUTER_PREF_INVALID)
                pref = ICMPV6_ROUTER_PREF_MEDIUM;
 
-       lifetime = htonl(rinfo->lifetime);
+       lifetime = ntohl(rinfo->lifetime);
        if (lifetime == 0xffffffff) {
                /* infinity */
        } else if (lifetime > 0x7fffffff/HZ) {