patch-2.1.89 linux/include/net/addrconf.h

Next file: linux/include/net/arp.h
Previous file: linux/include/linux/wireless.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.88/linux/include/net/addrconf.h linux/include/net/addrconf.h
@@ -148,6 +148,10 @@
 		      __constant_htonl(0x2));
 }
 
+extern __inline__ int ipv6_addr_is_multicast(struct in6_addr *addr)
+{
+	return (addr->s6_addr32[0] & __constant_htonl(0xFF000000)) == __constant_htonl(0xFF000000);
+}
 
 #endif
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov