summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_dummynet.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
committerphk <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
commite87f7a15ad62e1dd25061ddb301662e809692c2c (patch)
tree5f0ba9ebd57fbfd6e13f2b9403d96e9bfae48d8f /sys/netinet/ip_dummynet.c
parentf3b4fbe35f6e8e9d09f742c114281d8e9984d135 (diff)
downloadFreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.zip
FreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.tar.gz
Mechanical change to use <sys/queue.h> macro API instead of
fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
Diffstat (limited to 'sys/netinet/ip_dummynet.c')
-rw-r--r--sys/netinet/ip_dummynet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index 8060437..c0d436e 100644
--- a/sys/netinet/ip_dummynet.c
+++ b/sys/netinet/ip_dummynet.c
@@ -1282,7 +1282,7 @@ dummynet_flush()
s = splimp() ;
/* remove all references to pipes ...*/
- for (chain= ip_fw_chain.lh_first ; chain; chain = chain->chain.le_next)
+ for (chain= LIST_FIRST(&ip_fw_chain) ; chain; chain = LIST_NEXT(chain, chain))
chain->rule->pipe_ptr = NULL ;
/* prevent future matches... */
p = all_pipes ;
@@ -1658,7 +1658,7 @@ delete_pipe(struct dn_pipe *p)
else
a->next = b->next ;
/* remove references to this pipe from the ip_fw rules. */
- for (chain = ip_fw_chain.lh_first ; chain; chain = chain->chain.le_next)
+ for (chain = LIST_FIRST(&ip_fw_chain) ; chain; chain = LIST_NEXT(chain, chain))
if (chain->rule->pipe_ptr == &(b->fs))
chain->rule->pipe_ptr = NULL ;
@@ -1692,7 +1692,7 @@ delete_pipe(struct dn_pipe *p)
else
a->next = b->next ;
/* remove references to this flow_set from the ip_fw rules. */
- for (chain = ip_fw_chain.lh_first; chain; chain = chain->chain.le_next)
+ LIST_FOREACH(chain, &ip_fw_chain, chain)
if (chain->rule->pipe_ptr == b)
chain->rule->pipe_ptr = NULL ;
OpenPOWER on IntegriCloud