diff options
Diffstat (limited to 'NetBSD/ip_input.c.diffs')
-rw-r--r-- | NetBSD/ip_input.c.diffs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/NetBSD/ip_input.c.diffs b/NetBSD/ip_input.c.diffs new file mode 100644 index 0000000000000..b5ef509db3206 --- /dev/null +++ b/NetBSD/ip_input.c.diffs @@ -0,0 +1,37 @@ +*** /sys/netinet/ip_input.c.orig Sat Oct 14 12:51:10 1995 +--- /sys/netinet/ip_input.c Tue Feb 18 21:32:33 1997 +*************** +*** 80,85 **** +--- 80,89 ---- + int ipqmaxlen = IFQ_MAXLEN; + struct in_ifaddrhead in_ifaddr; + struct ifqueue ipintrq; ++ #if defined(IPFILTER_LKM) || defined(IPFILTER) ++ int fr_check __P((struct ip *, int, struct ifnet *, int, struct mbuf *)); ++ int (*fr_checkp) __P((struct ip *, int, struct ifnet *, int, struct mbuf **)); ++ #endif + + /* + * We need to save the IP options in case a protocol wants to respond +*************** +*** 216,221 **** +--- 220,238 ---- + m_adj(m, ip->ip_len - m->m_pkthdr.len); + } + ++ #if defined(IPFILTER) || defined(IPFILTER_LKM) ++ /* ++ * Check if we want to allow this packet to be processed. ++ * Consider it to be bad if not. ++ */ ++ if (fr_checkp) { ++ struct mbuf *m1 = m; ++ ++ if ((*fr_checkp)(ip, hlen, m->m_pkthdr.rcvif, 0, &m1) || !m1) ++ goto next; ++ ip = mtod(m = m1, struct ip *); ++ } ++ #endif + /* + * Process options and, if not destined for us, + * ship it on. ip_dooptions returns 1 when an |