diff options
author | csjp <csjp@FreeBSD.org> | 2006-02-02 16:41:20 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2006-02-02 16:41:20 +0000 |
commit | c8f0963c9e61ccb376847f9be4be743370b21162 (patch) | |
tree | 48fecc7a8654f8c7a4272318f93450e015796be9 /sys/netinet/ip_fw2.c | |
parent | 8e3e7864a87270e57c53148cc2d149b1c76972c9 (diff) | |
download | FreeBSD-src-c8f0963c9e61ccb376847f9be4be743370b21162.zip FreeBSD-src-c8f0963c9e61ccb376847f9be4be743370b21162.tar.gz |
Use PFIL_HOOKED macros in if_bridge and pass the right argument to
rw_assert. This un-breaks the build.
Submitted by: Kostik Belousov
Pointy hat to: csjp
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r-- | sys/netinet/ip_fw2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index ea43ece..f735ca9 100644 --- a/sys/netinet/ip_fw2.c +++ b/sys/netinet/ip_fw2.c @@ -139,7 +139,7 @@ struct ip_fw_chain { rw_init(&(_chain)->rwmtx, "IPFW static rules") #define IPFW_LOCK_DESTROY(_chain) rw_destroy(&(_chain)->rwmtx) #define IPFW_WLOCK_ASSERT(_chain) do { \ - rw_assert(rw, RA_WLOCKED); \ + rw_assert(&(_chain)->rwmtx, RA_WLOCKED); \ NET_ASSERT_GIANT(); \ } while (0) |