Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2006 21:18:56 GMT
From:      Paolo Pisati <piso@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105364 for review
Message-ID:  <200608302118.k7ULIud4036644@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105364

Change 105364 by piso@piso_newluxor on 2006/08/30 21:18:22

	hook_entry()/unhook_entry() are not needed anymore.

Affected files ...

.. //depot/projects/soc2005/libalias/sys/netinet/ip_fw2.c#10 edit

Differences ...

==== //depot/projects/soc2005/libalias/sys/netinet/ip_fw2.c#10 (text+ko) ====

@@ -2062,26 +2062,6 @@
 	return (NULL);
 }
 
-/* Attach p to b chain. */
-__unused static void
-hook_entry(struct _chain **b, struct _chain *p) {
-		
-	/* XXX better to make an in-order addition... */
-	for(; *b != NULL; b = &((*b)->next))
-		;
-	*b = p;
-}
-
-/* Remove p from b chain. */
-__unused static void
-unhook_entry(struct _chain **b, struct _chain *p) {
-	
-	NAT_WLOCK_ASSERT(&nat_chain_rwl);
-	for(; *b != p; b = &((*b)->next))
-		;
-	*b = p->next;
-}
-
 #define HOOK_NAT(b, p) do {                                     \
 	NAT_WLOCK_ASSERT(&nat_chain_rwl);                       \
         LIST_INSERT_HEAD(b, p, _next);                          \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608302118.k7ULIud4036644>