Subject: patch to fix a bug

From: JINMEI Tatuya / 神明達哉<[email-masked]>
Date: Fri, 01 Oct 1999 01:39:14 +0900

To those who participate in the ipng interim meeting and use the KAME
stack;

As you saw, we encountered sudden crash of KAME boxes yesterday. It
was due to a bug in the KAME IPv6 stack and would be fixed with the
following patch. If you want to make your PC more stable, please apply
the patch.

Sorry for your trouble.

					JINMEI, Tatuya
					Communication Platform Lab.
					Corporate R&D Center, Toshiba Corp.
					[email-masked]

Index: ip6.h
===================================================================
RCS file: /cvsroot/kame/kame/kame/sys/netinet6/ip6.h,v
retrieving revision 1.3
diff -c -r1.3 ip6.h
*** ip6.h	1999/08/16 20:33:13	1.3
--- ip6.h	1999/09/30 07:54:19
***************
*** 233,238 ****
--- 233,245 ----
  		}							\
  	}								\
      }									\
+     else {								\
+ 	if ((m)->m_len < (off) + (hlen)) {				\
+ 		ip6stat.ip6s_toosmall++;				\
+ 		m_freem(m);						\
+ 		return ret;						\
+ 	}								\
+     }									\
  } while (0)
  
  #endif /* not _NETINET_IPV6_H_ */
--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page:                      http://playground.sun.com/ipng
FTP archive:                      ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [email-masked]
--------------------------------------------------------------------