aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/net/if_stf.c4
-rw-r--r--sys/netinet/in_gif.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index c95aaa54ec0e..bfd462a777f3 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $KAME: if_stf.c,v 1.40 2000/06/20 19:44:42 itojun Exp $ */
+/* $KAME: if_stf.c,v 1.42 2000/08/15 07:24:23 itojun Exp $ */
/*
* Copyright (C) 2000 WIDE Project.
@@ -408,7 +408,7 @@ stf_checkaddr4(in, ifp)
* reject packets with the following address:
* 224.0.0.0/4 0.0.0.0/8 127.0.0.0/8 255.0.0.0/8
*/
- if (IN_MULTICAST(in->s_addr))
+ if (IN_MULTICAST(ntohl(in->s_addr)))
return -1;
switch ((ntohl(in->s_addr) & 0xff000000) >> 24) {
case 0: case 127: case 255:
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c
index 2335873bbb38..bce267cde194 100644
--- a/sys/netinet/in_gif.c
+++ b/sys/netinet/in_gif.c
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $KAME: in_gif.c,v 1.43 2000/06/20 19:45:00 itojun Exp $ */
+/* $KAME: in_gif.c,v 1.44 2000/08/15 07:24:24 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -347,7 +347,7 @@ gif_encapcheck4(m, off, proto, arg)
return 0;
/* martian filters on outer source - NOT done in ip_input! */
- if (IN_MULTICAST(ip.ip_src.s_addr))
+ if (IN_MULTICAST(ntohl(ip.ip_src.s_addr)))
return 0;
switch ((ntohl(ip.ip_src.s_addr) & 0xff000000) >> 24) {
case 0: case 127: case 255: