Source-Changes-HG archive

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

[src/trunk]: src/sys repair kernel faithd(8) support. there were two mistakes:



details:   https://anonhg.NetBSD.org/src/rev/e461e91721d6
branches:  trunk
changeset: 494118:e461e91721d6
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun Jul 02 08:04:10 2000 +0000

description:
repair kernel faithd(8) support.  there were two mistakes:
(1) tcp6_input dropped packets for translation
(2) in6_pcblookup_connect was too strict

diffstat:

 sys/netinet/tcp_input.c |  12 +-----------
 sys/netinet6/in6_pcb.c  |   8 ++------
 2 files changed, 3 insertions(+), 17 deletions(-)

diffs (48 lines):

diff -r 9cb12c093cde -r e461e91721d6 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Sun Jul 02 07:39:39 2000 +0000
+++ b/sys/netinet/tcp_input.c   Sun Jul 02 08:04:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.109 2000/06/30 16:44:33 itojun Exp $   */
+/*     $NetBSD: tcp_input.c,v 1.110 2000/07/02 08:04:10 itojun Exp $   */
 
 /*
 %%% portions-copyright-nrl-95
@@ -516,16 +516,6 @@
 {
        struct mbuf *m = *mp;
 
-#if defined(NFAITH) && 0 < NFAITH
-       if (m->m_pkthdr.rcvif) {
-               if (m->m_pkthdr.rcvif->if_type == IFT_FAITH) {
-                       /* XXX send icmp6 host/port unreach? */
-                       m_freem(m);
-                       return IPPROTO_DONE;
-               }
-       }
-#endif
-
        /*
         * draft-itojun-ipv6-tcp-to-anycast
         * better place to put this in?
diff -r 9cb12c093cde -r e461e91721d6 sys/netinet6/in6_pcb.c
--- a/sys/netinet6/in6_pcb.c    Sun Jul 02 07:39:39 2000 +0000
+++ b/sys/netinet6/in6_pcb.c    Sun Jul 02 08:04:10 2000 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: in6_pcb.c,v 1.26 2000/06/08 13:51:33 itojun Exp $      */
-/*     $KAME: in6_pcb.c,v 1.45 2000/06/05 00:41:58 itojun Exp $        */
+/*     $NetBSD: in6_pcb.c,v 1.27 2000/07/02 08:04:11 itojun Exp $      */
+/*     $KAME: in6_pcb.c,v 1.55 2000/07/02 07:50:30 itojun Exp $        */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -807,10 +807,6 @@
        u_int16_t fport = fport_arg, lport = lport_arg;
 
        for (in6p = head->in6p_next; in6p != head; in6p = in6p->in6p_next) {
-#if defined(NFAITH) && NFAITH > 0
-               if (faith && (in6p->in6p_flags & IN6P_FAITH) == 0)
-                       continue;
-#endif
                /* find exact match on both source and dest */
                if (in6p->in6p_fport != fport)
                        continue;



Home | Main Index | Thread Index | Old Index