svn commit: r202737 - user/luigi/ipfw3-head/sys/netinet/ipfw

Luigi Rizzo luigi at FreeBSD.org
Thu Jan 21 10:08:59 UTC 2010


Author: luigi
Date: Thu Jan 21 10:08:58 2010
New Revision: 202737
URL: http://svn.freebsd.org/changeset/base/202737

Log:
  initialize a field for si_new

Modified:
  user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dummynet.c

Modified: user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dummynet.c
==============================================================================
--- user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dummynet.c	Thu Jan 21 09:11:50 2010	(r202736)
+++ user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dummynet.c	Thu Jan 21 10:08:58 2010	(r202737)
@@ -648,6 +648,7 @@ schk_new(uintptr_t key, int flags, void 
 	s->pipe.pipe_nr = s->sch.sched_nr;
 	SLIST_INIT(&s->fsk_list);
 	/* initialize the hash table or create the single instance */
+	s->fp = a->fp;	/* si_new needs this */
 	s->siht = (s->sch.flags & DN_HAVE_MASK) ?
 		dn_ht_init(NULL, s->sch.buckets,
 			offsetof(struct new_sch_inst, si_next),
@@ -657,6 +658,7 @@ schk_new(uintptr_t key, int flags, void 
 		free(s, M_DUMMYNET);
 		return NULL;
 	}
+	s->fp = NULL;	/* mark as a new scheduler */
 	dn_cfg.schk_count++;
 	return s;
 }


More information about the svn-src-user mailing list