summaryrefslogtreecommitdiffstats
path: root/FreeBSD-2.2/ip_input.c.diffs
diff options
context:
space:
mode:
Diffstat (limited to 'FreeBSD-2.2/ip_input.c.diffs')
-rw-r--r--FreeBSD-2.2/ip_input.c.diffs32
1 files changed, 32 insertions, 0 deletions
diff --git a/FreeBSD-2.2/ip_input.c.diffs b/FreeBSD-2.2/ip_input.c.diffs
new file mode 100644
index 0000000..c2b2b15
--- /dev/null
+++ b/FreeBSD-2.2/ip_input.c.diffs
@@ -0,0 +1,32 @@
+*** /sys/netinet/ip_input.c.orig Sat May 24 13:37:16 1997
+--- /sys/netinet/ip_input.c Sat May 24 13:38:58 1997
+***************
+*** 74,79 ****
+--- 74,82 ----
+ #ifdef IPFIREWALL
+ #include <netinet/ip_fw.h>
+ #endif
++ #if defined(IPFILTER_LKM) || defined(IPFILTER)
++ int (*fr_checkp) __P((struct ip *, int, struct ifnet *, int, struct mbuf **));
++ #endif
+
+ int rsvp_on = 0;
+ static int ip_rsvp_on;
+***************
+*** 310,315 ****
+--- 313,327 ----
+ * - Wrap: fake packet's addr/port <unimpl.>
+ * - Encapsulate: put it in another IP and send out. <unimp.>
+ */
++ #if defined(IPFILTER_LKM) || defined(IPFILTER)
++ if (fr_checkp) {
++ struct mbuf *m1 = m;
++
++ if ((*fr_checkp)(ip, hlen, m->m_pkthdr.rcvif, 0, &m1) || !m1)
++ return;
++ ip = mtod(m = m1, struct ip *);
++ }
++ #endif
+
+ #ifdef COMPAT_IPFW
+ if (ip_fw_chk_ptr) {
OpenPOWER on IntegriCloud