svn commit: r237735 - head/sys/netinet6

Bruce M Simpson bms at FreeBSD.org
Thu Jun 28 23:45:37 UTC 2012


Author: bms
Date: Thu Jun 28 23:45:37 2012
New Revision: 237735
URL: http://svn.freebsd.org/changeset/base/237735

Log:
  Fix a typo in MLD query exponent processing.
  
  Submitted by:	rpaulo@
  MFC after:	3 days

Modified:
  head/sys/netinet6/mld6.c

Modified: head/sys/netinet6/mld6.c
==============================================================================
--- head/sys/netinet6/mld6.c	Thu Jun 28 23:44:47 2012	(r237734)
+++ head/sys/netinet6/mld6.c	Thu Jun 28 23:45:37 2012	(r237735)
@@ -833,7 +833,7 @@ mld_v2_input_query(struct ifnet *ifp, co
 	mld = (struct mldv2_query *)(mtod(m, uint8_t *) + off);
 
 	maxdelay = ntohs(mld->mld_maxdelay);	/* in 1/10ths of a second */
-	if (maxdelay >= 32678) {
+	if (maxdelay >= 32768) {
 		maxdelay = (MLD_MRC_MANT(maxdelay) | 0x1000) <<
 			   (MLD_MRC_EXP(maxdelay) + 3);
 	}


More information about the svn-src-all mailing list