diff options
| author | 2009-03-09 13:53:09 +0000 | |
|---|---|---|
| committer | 2009-03-09 13:53:09 +0000 | |
| commit | 26b46f765f4625ccd2dddc5773828829ada61c48 (patch) | |
| tree | 0f06774f2d9543d3874eddd1e8e8d89f27f62185 /sys/net/pfvar.h | |
| parent | add hunk that should have been included in rev. 1.12, fixes occasional (diff) | |
| download | wireguard-openbsd-26b46f765f4625ccd2dddc5773828829ada61c48.tar.xz wireguard-openbsd-26b46f765f4625ccd2dddc5773828829ada61c48.zip | |
Make the DIOCSETIFFLAG, DIOCSETLIMIT, and DIOCSETTIMEOUT ioctls
transactional, closing PRs 4941 and 5910. Minor flag day, requires rebuild
of userland tools that use struct pfi_kif.
ok henning deraadt
Diffstat (limited to 'sys/net/pfvar.h')
| -rw-r--r-- | sys/net/pfvar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 2de3ff2372b..8dd2f87c0fc 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.283 2009/02/16 00:31:25 dlg Exp $ */ +/* $OpenBSD: pfvar.h,v 1.284 2009/03/09 13:53:10 mcbride Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1063,6 +1063,7 @@ struct pfi_kif { u_int64_t pfik_bytes[2][2][2]; u_int32_t pfik_tzero; int pfik_flags; + int pfik_flags_new; void *pfik_ah_cookie; struct ifnet *pfik_ifp; struct ifg_group *pfik_group; @@ -1749,6 +1750,7 @@ void pfi_update_status(const char *, struct pf_status *); int pfi_get_ifaces(const char *, struct pfi_kif *, int *); int pfi_set_flags(const char *, int); int pfi_clear_flags(const char *, int); +void pfi_xcommit(void); int pf_match_tag(struct mbuf *, struct pf_rule *, int *); u_int16_t pf_tagname2tag(char *); @@ -1767,6 +1769,7 @@ extern struct rwlock pf_consistency_lock; struct pf_pool_limit { void *pp; unsigned limit; + unsigned limit_new; }; extern struct pf_pool_limit pf_pool_limits[PF_LIMIT_MAX]; |
