Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet IN_MULTICAST() takes in_addr.s_addr as argument, ...



details:   https://anonhg.NetBSD.org/src/rev/f03f403b2ef9
branches:  trunk
changeset: 485129:f03f403b2ef9
user:      enami <enami%NetBSD.org@localhost>
date:      Thu Apr 20 01:59:22 2000 +0000

description:
IN_MULTICAST() takes in_addr.s_addr as argument, not pointer to it.

diffstat:

 sys/netinet/in_gif.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r eaea7c04aff6 -r f03f403b2ef9 sys/netinet/in_gif.c
--- a/sys/netinet/in_gif.c      Thu Apr 20 00:41:20 2000 +0000
+++ b/sys/netinet/in_gif.c      Thu Apr 20 01:59:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in_gif.c,v 1.12 2000/04/19 06:30:54 itojun Exp $       */
+/*     $NetBSD: in_gif.c,v 1.13 2000/04/20 01:59:22 enami Exp $        */
 /*     $KAME: in_gif.c,v 1.36 2000/04/19 04:51:58 itojun Exp $ */
 
 /*
@@ -372,7 +372,7 @@
                return 0;
 
        /* martian filters on outer source - NOT done in ip_input! */
-       if (IN_MULTICAST(&ip.ip_src.s_addr))
+       if (IN_MULTICAST(ip.ip_src.s_addr))
                return 0;
        switch ((ntohl(ip.ip_src.s_addr) & 0xff000000) >> 24) {
        case 0: case 127: case 255:



Home | Main Index | Thread Index | Old Index