svn commit: r258103 - in stable/8/sys: netinet netinet6

John Baldwin jhb at FreeBSD.org
Wed Nov 13 18:35:07 UTC 2013


Author: jhb
Date: Wed Nov 13 18:35:06 2013
New Revision: 258103
URL: http://svnweb.freebsd.org/changeset/base/258103

Log:
  MFC 255248:
  Use an unsigned long when indexing into mfchashtbl[] and mf6ctable[].  This
  matches the types used when computing hash indices and the type of the
  maximum size of mfchashtbl[].
  
  PR:		kern/181821

Modified:
  stable/8/sys/netinet/ip_mroute.c
  stable/8/sys/netinet6/ip6_mroute.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/netinet/   (props changed)
  stable/8/sys/netinet6/   (props changed)

Modified: stable/8/sys/netinet/ip_mroute.c
==============================================================================
--- stable/8/sys/netinet/ip_mroute.c	Wed Nov 13 18:33:14 2013	(r258102)
+++ stable/8/sys/netinet/ip_mroute.c	Wed Nov 13 18:35:06 2013	(r258103)
@@ -610,7 +610,7 @@ static void
 if_detached_event(void *arg __unused, struct ifnet *ifp)
 {
     vifi_t vifi;
-    int i;
+    u_long i;
 
     MROUTER_LOCK();
 
@@ -706,7 +706,7 @@ static int
 X_ip_mrouter_done(void)
 {
     struct ifnet *ifp;
-    int i;
+    u_long i;
     vifi_t vifi;
 
     MROUTER_LOCK();
@@ -798,7 +798,7 @@ set_assert(int i)
 int
 set_api_config(uint32_t *apival)
 {
-    int i;
+    u_long i;
 
     /*
      * We can set the API capabilities only if it is the first operation
@@ -1432,7 +1432,7 @@ non_fatal:
 static void
 expire_upcalls(void *arg)
 {
-    int i;
+    u_long i;
 
     CURVNET_SET((struct vnet *) arg);
 

Modified: stable/8/sys/netinet6/ip6_mroute.c
==============================================================================
--- stable/8/sys/netinet6/ip6_mroute.c	Wed Nov 13 18:33:14 2013	(r258102)
+++ stable/8/sys/netinet6/ip6_mroute.c	Wed Nov 13 18:35:06 2013	(r258103)
@@ -571,7 +571,7 @@ int
 X_ip6_mrouter_done(void)
 {
 	mifi_t mifi;
-	int i;
+	u_long i;
 	struct mf6c *rt;
 	struct rtdetq *rte;
 
@@ -1337,7 +1337,7 @@ expire_upcalls(void *unused)
 {
 	struct rtdetq *rte;
 	struct mf6c *mfc, **nptr;
-	int i;
+	u_long i;
 
 	MFC6_LOCK();
 	for (i = 0; i < MF6CTBLSIZ; i++) {


More information about the svn-src-all mailing list