summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-12-07 20:45:05 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-12-07 20:45:05 +0000
commit0e1b59492856e94e3507071aaa0bdc101e94a705 (patch)
treea85e67023de9ae070f4955d87a97ac4e511bb916 /sbin/pfctl/pfctl.c
parent0935a6f0d18ca78dc00225cf5b0e9b4284c16045 (diff)
TAILQ_INSERT_TAIL instead of TAILQ_INSERT_HEAD. Makes addresses print
out in correct order when getting rules from kernel (affects pfctl -s). ok henning@
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r--sbin/pfctl/pfctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index b4d4e765256..cdf9c7102e3 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.99 2002/12/06 00:47:31 dhartmei Exp $ */
+/* $OpenBSD: pfctl.c,v 1.100 2002/12/07 20:45:04 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -439,7 +439,7 @@ pfctl_get_pool(int dev, struct pf_pool *pool, u_int32_t nr,
return (-1);
}
bcopy(&pp.addr, pa, sizeof(struct pf_pooladdr));
- TAILQ_INSERT_HEAD(&pool->list, pa, entries);
+ TAILQ_INSERT_TAIL(&pool->list, pa, entries);
}
return (0);