Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet fr_check_wrapper: as ipf modifies application da...



details:   https://anonhg.NetBSD.org/src/rev/8e674aa18113
branches:  trunk
changeset: 569792:8e674aa18113
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon Sep 06 10:46:02 2004 +0000

description:
fr_check_wrapper: as ipf modifies application data as well when
doing application proxy, it's needed to ensure that the whole packet
is writable here.

diffstat:

 sys/netinet/ip_fil_netbsd.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 721d501c7225 -r 8e674aa18113 sys/netinet/ip_fil_netbsd.c
--- a/sys/netinet/ip_fil_netbsd.c       Mon Sep 06 10:05:14 2004 +0000
+++ b/sys/netinet/ip_fil_netbsd.c       Mon Sep 06 10:46:02 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_fil_netbsd.c,v 1.15 2004/09/06 10:00:43 yamt Exp $  */
+/*     $NetBSD: ip_fil_netbsd.c,v 1.16 2004/09/06 10:46:02 yamt Exp $  */
 
 /*
  * Copyright (C) 1993-2003 by Darren Reed.
@@ -132,10 +132,9 @@
        /*
         * ensure that mbufs are writable beforehand
         * as it's assumed by ipf code.
-        * ip hdr (60 bytes) + tcp hdr (60 bytes) should be enough.
         * XXX inefficient
         */
-       error = m_makewritable(mp, 0, 60 + 60, M_DONTWAIT);
+       error = m_makewritable(mp, 0, M_COPYALL, M_DONTWAIT);
        if (error) {
                m_freem(*mp);
                *mp = NULL;



Home | Main Index | Thread Index | Old Index