From owner-freebsd-current@FreeBSD.ORG Fri Mar 12 03:08:44 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD2181065672 for ; Fri, 12 Mar 2010 03:08:44 +0000 (UTC) (envelope-from rrs@lakerest.net) Received: from lakerest.net (unknown [IPv6:2001:240:585:2:213:d4ff:fef3:2d8d]) by mx1.freebsd.org (Postfix) with ESMTP id 54E6D8FC0A for ; Fri, 12 Mar 2010 03:08:44 +0000 (UTC) Received: from [192.168.11.44] (197.214.32.202.bf.2iij.net [202.32.214.197]) (authenticated bits=0) by lakerest.net (8.14.3/8.14.3) with ESMTP id o2C38X9q078762 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 11 Mar 2010 22:08:37 -0500 (EST) (envelope-from rrs@lakerest.net) Message-Id: <3F08B7D7-1056-4F7C-B023-BCEA75DBE970@lakerest.net> From: Randall Stewart To: wooky@btconnect.com In-Reply-To: Content-Type: multipart/mixed; boundary=Apple-Mail-8-145820530 Mime-Version: 1.0 (Apple Message framework v936) Date: Fri, 12 Mar 2010 12:08:32 +0900 References: X-Mailer: Apple Mail (2.936) Cc: FreeBSD Current Subject: Re: sctp ipv6 csum issue X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2010 03:08:44 -0000 --Apple-Mail-8-145820530 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Opps: I was a little to quick, .. that one won't work.. but I think this one will (need to have the right magic header goo :-D) Try this please (this one will build and actually do something :-D) R --Apple-Mail-8-145820530 Content-Disposition: attachment; filename=patch.ip6_output.txt Content-Type: text/plain; x-unix-mode=0644; name="patch.ip6_output.txt" Content-Transfer-Encoding: 7bit Index: ip6_output.c =================================================================== --- ip6_output.c (revision 205059) +++ ip6_output.c (working copy) @@ -66,6 +66,7 @@ #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipsec.h" +#include "opt_sctp.h" #include #include @@ -102,6 +103,10 @@ #include #include #endif /* IPSEC */ +#ifdef SCTP +#include +#include +#endif #include #include @@ -208,6 +213,9 @@ struct route_in6 *ro_pmtu = NULL; int hdrsplit = 0; int needipsec = 0; +#ifdef SCTP + int sw_csum; +#endif #ifdef IPSEC struct ipsec_output_state state; struct ip6_rthdr *rh = NULL; @@ -829,6 +837,10 @@ } m->m_pkthdr.csum_flags |= CSUM_IP_CHECKED | CSUM_IP_VALID; +#ifdef SCTP + if (m->m_pkthdr.csum_flags & CSUM_SCTP) + m->m_pkthdr.csum_flags |= CSUM_SCTP_VALID; +#endif error = netisr_queue(NETISR_IPV6, m); goto done; } else @@ -857,6 +869,13 @@ * 4: if dontfrag == 1 && alwaysfrag == 1 * error, as we cannot handle this conflicting request */ +#ifdef SCTP + sw_csum = m->m_pkthdr.csum_flags & ~ifp->if_hwassist; + if (sw_csum & CSUM_SCTP) { + sctp_delayed_cksum(m); + sw_csum &= ~CSUM_SCTP; + } +#endif tlen = m->m_pkthdr.len; if (opt && (opt->ip6po_flags & IP6PO_DONTFRAG)) --Apple-Mail-8-145820530 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Mar 12, 2010, at 11:47 AM, Randall Stewart wrote: > Nigel: > > Here is a patch for your issue I think. > > Its off of a head machine but I think it should apply. If not > let me know. > > See if this does not fix the issue. > > Thanks > > R > > ------------------------------ > Randall Stewart > 803-317-4952 (cell) > 803-345-0391(direct) > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org > " ------------------------------ Randall Stewart 803-317-4952 (cell) 803-345-0391(direct) --Apple-Mail-8-145820530--