diff options
author | archie <archie@FreeBSD.org> | 1998-11-17 03:24:13 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1998-11-17 03:24:13 +0000 |
commit | ac03719b94bf57431c4a550c9e76a0c2305516c6 (patch) | |
tree | 58c5e097aaa90b2b02cceb5188e7b6e45ffc7b06 /security | |
parent | 34ff05258528b5a49cf5ab9aa69a95c1e6f56c07 (diff) | |
download | FreeBSD-ports-ac03719b94bf57431c4a550c9e76a0c2305516c6.zip FreeBSD-ports-ac03719b94bf57431c4a550c9e76a0c2305516c6.tar.gz |
SKIP needs a custom mbuf flag; use M_PROTO1 instead of M_EOR.
PR: ports/8712
Reviewed by: Archie Cobbs <archie@whistle.com>
Submitted by: Christopher N . Harrell <cnh@eng.mindspring.net>
Diffstat (limited to 'security')
-rw-r--r-- | security/skip/files/patch-bf | 22 | ||||
-rw-r--r-- | security/skip/files/patch-cl | 13 |
2 files changed, 33 insertions, 2 deletions
diff --git a/security/skip/files/patch-bf b/security/skip/files/patch-bf index ebd38cf..2afa088 100644 --- a/security/skip/files/patch-bf +++ b/security/skip/files/patch-bf @@ -1,6 +1,6 @@ diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_es.c skipsrc-1.0/skip/freebsd/skip_es.c ---- skipsrc-1.0.orig/skip/freebsd/skip_es.c Fri Oct 25 13:12:42 1996 -+++ skipsrc-1.0/skip/freebsd/skip_es.c Sun Apr 12 15:51:32 1998 +--- skipsrc-1.0.orig/skip/freebsd/skip_es.c Fri Oct 25 20:12:42 1996 ++++ skipsrc-1.0/skip/freebsd/skip_es.c Mon Nov 16 22:55:18 1998 @@ -81,6 +81,11 @@ static unsigned short skip_pktid; static skip_softc_t skip_softc[SKIP_MAX_OPENS]; @@ -71,6 +71,15 @@ diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_es.c skips decryptbuf->m_len, decryptbuf->m_data); } +@@ -1745,7 +1766,7 @@ + ip->ip_id = ntohs(ip->ip_id); + ip->ip_off = ntohs(ip->ip_off); + pass: +- m->m_flags &= ~ M_EOR; ++ m->m_flags &= ~ M_PROTO1; + (*inetsw_default[ip_protox[ip->ip_p]].pr_input)(m, hlen); + return (0); + } @@ -1910,6 +1931,13 @@ */ IPADDRCOPY(¶ms.tunnel_addr, &newip->ip_dst); @@ -126,3 +135,12 @@ diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_es.c skips /* * transport mode, need to copy original IP header */ +@@ -2195,7 +2230,7 @@ + /* + * tag the start of the header buffer so SKIP can recognise it + */ +- outbuf->m_flags |= M_EOR | M_PKTHDR; ++ outbuf->m_flags |= M_PROTO1 | M_PKTHDR; + + s = splimp(); + if (IF_QFULL(&ipintrq)) { diff --git a/security/skip/files/patch-cl b/security/skip/files/patch-cl new file mode 100644 index 0000000..1b0679a --- /dev/null +++ b/security/skip/files/patch-cl @@ -0,0 +1,13 @@ +diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_if.h skipsrc-1.0/skip/freebsd/skip_if.h +--- skipsrc-1.0.orig/skip/freebsd/skip_if.h Fri Oct 25 20:12:43 1996 ++++ skipsrc-1.0/skip/freebsd/skip_if.h Mon Nov 16 22:55:25 1998 +@@ -104,7 +104,7 @@ + /* + * returns TRUE if SKIP has processed this buffer + */ +-#define SKIP_DECRYPTED(m) ((m)->m_flags & M_EOR) ++#define SKIP_DECRYPTED(m) ((m)->m_flags & M_PROTO1) + + /* + * Macro to retrieve an ifnet +diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_os.h skipsrc-1.0/skip/freebsd/skip_os.h |