From owner-freebsd-hackers Fri Nov 13 14:08:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA09811 for freebsd-hackers-outgoing; Fri, 13 Nov 1998 14:08:19 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from foo.eng.mindspring.net (foo.eng.mindspring.net [207.69.192.103]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA09805 for ; Fri, 13 Nov 1998 14:08:18 -0800 (PST) (envelope-from cnh@foo.eng.mindspring.net) Received: (from cnh@localhost) by foo.eng.mindspring.net (8.9.1/8.8.8) id RAA16278 for freebsd-hackers@freebsd.org; Fri, 13 Nov 1998 17:09:16 -0500 (EST) (envelope-from cnh) Message-ID: <19981113170916.B15914@eng.mindspring.net> Date: Fri, 13 Nov 1998 17:09:16 -0500 From: "Christopher N . Harrell" To: freebsd-hackers@FreeBSD.ORG Subject: Re: corruption of large packets using skip on FreeBSD 2.2-STABLE Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Christopher N . Harrell wrote: > > I'm sure we've overlooking something, but we've been mulling over this for days now > without any luck at all. Any insight would be appreciated. Here's the fix: [ttyp1 cnh@bar]% for i in *.orig; do echo ${i%%.orig}; diff $i ${i%%.orig}; done /usr/ports/security/skip/work/skip/freebsd skip_es.c 1769c1769 < m->m_flags &= ~ M_EOR; --- > m->m_flags &= ~ M_PROTO1; 2233c2233 < outbuf->m_flags |= M_EOR | M_PKTHDR; --- > outbuf->m_flags |= M_PROTO1 | M_PKTHDR; skip_if.h 107c107 < #define SKIP_DECRYPTED(m) ((m)->m_flags & M_EOR) --- > #define SKIP_DECRYPTED(m) ((m)->m_flags & M_PROTO1) We believe that skip's use of M_EOR was being misinterpreted by something else. It *looks* like M_PROTO1 is a protocol specific flag and can be used safely in this way, but this could very well break something else; Use with caution. cheers, Christopher To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message