]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/net/ipv6.h
pkt_sched: Move gso_skb into Qdisc.
[karo-tx-linux.git] / include / net / ipv6.h
index 7f7db8d579347d5804ebf0e7f8c33fd771981e86..c2222ee74d66281e04119bcde109a645a49e0ef8 100644 (file)
@@ -365,6 +365,12 @@ static inline int ipv6_addr_any(const struct in6_addr *a)
                 a->s6_addr32[2] | a->s6_addr32[3] ) == 0); 
 }
 
+static inline int ipv6_addr_loopback(const struct in6_addr *a)
+{
+       return ((a->s6_addr32[0] | a->s6_addr32[1] |
+                a->s6_addr32[2] | (a->s6_addr32[3] ^ htonl(1))) == 0);
+}
+
 static inline int ipv6_addr_v4mapped(const struct in6_addr *a)
 {
        return ((a->s6_addr32[0] | a->s6_addr32[1] |