aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2023-03-03 18:29:44 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2023-03-03 18:30:15 +0000
commit7fc82fd1f82eb37ff52a9199f1e7d640748811ba (patch)
tree4ad589b03ff3864480b8fba0618f96d1c322e15d
parentd2ae03bae2add82124973876dec95eb126ff34c8 (diff)
downloadsrc-7fc82fd1f82eb37ff52a9199f1e7d640748811ba.tar.gz
src-7fc82fd1f82eb37ff52a9199f1e7d640748811ba.zip
ipfw: garbage collect ip_fw_chk_ptr
It is a relict left from the old times when ipfw(4) was hooked into IP stack directly, without pfil(9).
-rw-r--r--sys/netgraph/ng_bridge.c10
-rw-r--r--sys/netinet/ip_var.h1
-rw-r--r--sys/netinet/raw_ip.c1
3 files changed, 0 insertions, 12 deletions
diff --git a/sys/netgraph/ng_bridge.c b/sys/netgraph/ng_bridge.c
index 14068878736d..a8ec0cd207a7 100644
--- a/sys/netgraph/ng_bridge.c
+++ b/sys/netgraph/ng_bridge.c
@@ -74,9 +74,6 @@
#include <net/vnet.h>
#include <netinet/in.h>
-#if 0 /* not used yet */
-#include <netinet/ip_fw.h>
-#endif
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/ng_parse.h>
@@ -860,13 +857,6 @@ ng_bridge_rcvdata(hook_p hook, item_p item)
}
}
- /* Run packet through ipfw processing, if enabled */
-#if 0
- if (priv->conf.ipfw[linkNum] && V_fw_enable && V_ip_fw_chk_ptr != NULL) {
- /* XXX not implemented yet */
- }
-#endif
-
/*
* If unicast and destination host known, deliver to host's link,
* unless it is the same link as the packet came in on.
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index 0a2d915b12b3..2dfd7ddb4822 100644
--- a/sys/netinet/ip_var.h
+++ b/sys/netinet/ip_var.h
@@ -296,7 +296,6 @@ enum {
#define MTAG_IPFW_CALL 1308397630 /* call stack */
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_ctl_ptr_t, ip_fw_ctl_ptr);
#define V_ip_fw_ctl_ptr VNET(ip_fw_ctl_ptr)
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 7278f9711cec..39f40fcebff1 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -97,7 +97,6 @@ VNET_DEFINE(struct inpcbinfo, ripcbinfo);
* The data hooks are not used here but it is convenient
* to keep them all in one place.
*/
-VNET_DEFINE(ip_fw_chk_ptr_t, ip_fw_chk_ptr) = NULL;
VNET_DEFINE(ip_fw_ctl_ptr_t, ip_fw_ctl_ptr) = NULL;
int (*ip_dn_ctl_ptr)(struct sockopt *);