Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2011 17:43:04 +0000 (UTC)
From:      Ermal Luçi <eri@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r223765 - head/sys/netinet
Message-ID:  <201107041743.p64Hh4HJ028300@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eri
Date: Mon Jul  4 17:43:04 2011
New Revision: 223765
URL: http://svn.freebsd.org/changeset/base/223765

Log:
  pf(4) tags now store the state key but tcp_respond tries to reuse a mbuf as an optimization.
  This makes pf find the wrong state and cause errors reported with state mismatches.
  Clear the cached state link on the pf(4) tag to avoid the state mismatches.
  
  Approved by:	bz

Modified:
  head/sys/netinet/tcp_subr.c

Modified: head/sys/netinet/tcp_subr.c
==============================================================================
--- head/sys/netinet/tcp_subr.c	Mon Jul  4 17:03:19 2011	(r223764)
+++ head/sys/netinet/tcp_subr.c	Mon Jul  4 17:43:04 2011	(r223765)
@@ -541,6 +541,7 @@ tcp_respond(struct tcpcb *tp, void *ipge
 		m_freem(m->m_next);
 		m->m_next = NULL;
 		m->m_data = (caddr_t)ipgen;
+		m_addr_changed(m);
 		/* m_len is set later */
 		tlen = 0;
 #define xchg(a,b,type) { type t; t=a; a=b; b=t; }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107041743.p64Hh4HJ028300>