Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2010 13:40:03 GMT
From:      Max Laier <max@love2party.net>
To:        freebsd-pf@FreeBSD.org
Subject:   Re: kern/144311: [pf] [icmp] massive ICMP storm on lo0 occurs when using pf(4) 'reply-to'
Message-ID:  <201003191340.o2JDe3o8017603@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/144311; it has been noted by GNATS.

From: Max Laier <max@love2party.net>
To: bug-followup@freebsd.org,
 kasahara@nc.kyushu-u.ac.jp
Cc: Pyun YongHyeon <pyunyh@gmail.com>
Subject: Re: kern/144311: [pf] [icmp] massive ICMP storm on lo0 occurs when using pf(4) 'reply-to'
Date: Fri, 19 Mar 2010 14:35:05 +0100

 --Boundary-00=_J23oL/ZH/GBB7xo
 Content-Type: Text/Plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 Can you please test the attached patch (by Pyun YongHyeon) and let us know if 
 this fixes the situation for you?
 
 Thanks,
   Max Laier
 
 --Boundary-00=_J23oL/ZH/GBB7xo
 Content-Type: text/x-patch;
   charset="ISO-8859-1";
   name="pf.routeto.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="pf.routeto.patch"
 
 Index: sys/contrib/pf/net/pf.c
 ===================================================================
 --- sys/contrib/pf/net/pf.c	(revision 203960)
 +++ sys/contrib/pf/net/pf.c	(working copy)
 @@ -6375,6 +6375,7 @@
  	m0->m_pkthdr.csum_flags &= ifp->if_hwassist;
  
  	if (ntohs(ip->ip_len) <= ifp->if_mtu ||
 +	    (m0->m_pkthdr.csum_flags & ifp->if_hwassist & CSUM_TSO) != 0 ||
  	    (ifp->if_hwassist & CSUM_FRAGMENT &&
  		((ip->ip_off & htons(IP_DF)) == 0))) {
  		/*
 @@ -6449,7 +6450,7 @@
  	 * Too large for interface; fragment if possible.
  	 * Must be able to put at least 8 bytes per fragment.
  	 */
 -	if (ip->ip_off & htons(IP_DF)) {
 +	if (ip->ip_off & htons(IP_DF) || (m0->m_pkthdr.csum_flags & CSUM_TSO)) {
  		KMOD_IPSTAT_INC(ips_cantfrag);
  		if (r->rt != PF_DUPTO) {
  #ifdef __FreeBSD__
 
 --Boundary-00=_J23oL/ZH/GBB7xo--



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