patch-1.3.86 linux/net/core/firewall.c

Next file: linux/net/core/skbuff.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.85/linux/net/core/firewall.c linux/net/core/firewall.c
@@ -5,7 +5,8 @@
  *	Authors:	Dave Bonn (for IP)
  *	much hacked by:	Alan Cox
  */
- 
+
+#include <linux/module.h> 
 #include <linux/skbuff.h>
 #include <linux/firewall.h>
 
@@ -145,9 +146,20 @@
 	return firewall_policy[pf];
 }
 
+static struct symbol_table firewall_syms = {
+#include <linux/symtab_begin.h>
+	X(register_firewall),
+	X(unregister_firewall),
+	X(call_in_firewall),
+	X(call_out_firewall),
+	X(call_fw_firewall),
+#include <linux/symtab_end.h>
+};
+
 void fwchain_init(void)
 {
 	int i;
 	for(i=0;i<NPROTO;i++)
 		firewall_policy[i]=FW_ACCEPT;
+	register_symtab(&firewall_syms);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this