summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_var.h
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2012-09-04 19:43:26 +0000
committermelifaro <melifaro@FreeBSD.org>2012-09-04 19:43:26 +0000
commit1fbae66b6e67117d899f9c10f12c000c4584d32c (patch)
treea8022a21cc0401215271f1f78d4f500650942824 /sys/netinet/ip_var.h
parent599115bdcb3939cdc5164a09fd18ccfe4c310ab1 (diff)
downloadFreeBSD-src-1fbae66b6e67117d899f9c10f12c000c4584d32c.zip
FreeBSD-src-1fbae66b6e67117d899f9c10f12c000c4584d32c.tar.gz
Introduce new link-layer PFIL hook V_link_pfil_hook.
Merge ether_ipfw_chk() and part of bridge_pfil() into unified ipfw_check_frame() function called by PFIL. This change was suggested by rwatson? @ DevSummit. Remove ipfw headers from ether/bridge code since they are unneeded now. Note this thange introduce some (temporary) performance penalty since PFIL read lock has to be acquired for every link-level packet. MFC after: 3 weeks
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r--sys/netinet/ip_var.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index 0ebcea5..68f3cb9 100644
--- a/sys/netinet/ip_var.h
+++ b/sys/netinet/ip_var.h
@@ -292,9 +292,7 @@ enum {
struct ip_fw_args;
typedef int (*ip_fw_chk_ptr_t)(struct ip_fw_args *args);
typedef int (*ip_fw_ctl_ptr_t)(struct sockopt *);
-VNET_DECLARE(ip_fw_chk_ptr_t, ip_fw_chk_ptr);
VNET_DECLARE(ip_fw_ctl_ptr_t, ip_fw_ctl_ptr);
-#define V_ip_fw_chk_ptr VNET(ip_fw_chk_ptr)
#define V_ip_fw_ctl_ptr VNET(ip_fw_ctl_ptr)
/* Divert hooks. */
OpenPOWER on IntegriCloud