Skip to content
Browse files

use IN6_IS_ADDR_MC_INTFACELOCAL if available

  • Loading branch information...
1 parent 061d319 commit 5972ab118b112619b9d646444a9515c2a292116e itojun committed Nov 17, 2002
Showing with 5 additions and 1 deletion.
  1. +5 −1 kame/sys/net/if_stf.c
View
6 kame/sys/net/if_stf.c
@@ -1,4 +1,4 @@
-/* $KAME: if_stf.c,v 1.91 2002/11/17 16:24:52 itojun Exp $ */
+/* $KAME: if_stf.c,v 1.92 2002/11/17 19:35:41 itojun Exp $ */
/*
* Copyright (C) 2000 WIDE Project.
@@ -801,7 +801,11 @@ stf_checkaddr6(sc, in6, inifp)
* reject node-local and link-local multicast
* as suggested in draft-savola-v6ops-6to4-security-00.txt
*/
+#ifdef IN6_IS_ADDR_MC_INTFACELOCAL
+ if (IN6_IS_ADDR_MC_INTFACELOCAL(in6) || IN6_IS_ADDR_MC_LINKLOCAL(in6))
+#else
if (IN6_IS_ADDR_MC_NODELOCAL(in6) || IN6_IS_ADDR_MC_LINKLOCAL(in6))
+#endif
return -1;
return 0;

0 comments on commit 5972ab1

Please sign in to comment.
Something went wrong with that request. Please try again.