From marka@isc.org  Sun Jun 26 09:30:36 2011
Return-Path: <marka@isc.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 57143106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jun 2011 09:30:36 +0000 (UTC)
	(envelope-from marka@isc.org)
Received: from mx.ams1.isc.org (mx.ams1.isc.org [IPv6:2001:500:60::65])
	by mx1.freebsd.org (Postfix) with ESMTP id E3F018FC13
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jun 2011 09:30:35 +0000 (UTC)
Received: from bikeshed.isc.org (bikeshed.isc.org [IPv6:2001:4f8:3:d::19])
	(using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits))
	(Client CN "bikeshed.isc.org", Issuer "ISC CA" (verified OK))
	by mx.ams1.isc.org (Postfix) with ESMTPS id B99765F9904
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jun 2011 09:30:24 +0000 (UTC)
	(envelope-from marka@isc.org)
Received: from sex.dv.isc.org (sex.dv.isc.org [IPv6:2001:470:1f00:820:218:f3ff:feba:9a37])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by bikeshed.isc.org (Postfix) with ESMTPSA id 58255216C81
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jun 2011 09:30:17 +0000 (UTC)
	(envelope-from marka@isc.org)
Received: from sex.dv.isc.org (localhost [127.0.0.1])
	by sex.dv.isc.org (8.14.4/8.14.4) with ESMTP id p5Q9RgRs010158
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jun 2011 19:27:42 +1000 (EST)
	(envelope-from marka@sex.dv.isc.org)
Received: (from marka@localhost)
	by sex.dv.isc.org (8.14.4/8.14.4/Submit) id p5Q9RfOw010157;
	Sun, 26 Jun 2011 19:27:41 +1000 (EST)
	(envelope-from marka)
Message-Id: <201106260927.p5Q9RfOw010157@sex.dv.isc.org>
Date: Sun, 26 Jun 2011 19:27:41 +1000 (EST)
From: Mark Andrews <marka@isc.org>
Reply-To: Mark Andrews <marka@isc.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ipv6_pktinfo breaks IPV6_USE_MIN_MTU
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         158307
>Category:       kern
>Synopsis:       [ip6] ipv6_pktinfo breaks IPV6_USE_MIN_MTU
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    hrs
>State:          patched
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 26 09:40:01 UTC 2011
>Closed-Date:    
>Last-Modified:  Wed Mar  7 01:40:11 UTC 2012
>Originator:     Mark Andrews
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
ISC
>Environment:
System: FreeBSD sex.dv.isc.org 8.2-STABLE FreeBSD 8.2-STABLE #10: Sat Feb 26 18:02:12 EST 2011 marka@sex.dv.isc.org:/usr/obj/usr/src/sys/DEBUG i386


>Description:

	If IPV6_PKTINFO is set as a control with sendmsg() then
	IPV6_USE_MIN_MTU state set by setsockopt() is ignored.
	
>How-To-Repeat:

	Run named and look at any IPv6 UDP response > 1280 bytes.
	These are all supposed to be fragmented at 1280 as named
	sets IPV6_USE_MIN_MTU to 1 on all IPv6 UDP sockets.

	PMTUD really doesn't work well for DNS which is one of the
	reasons why IPV6_USE_MIN_MTU was defined in the first place.

>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Sun Jun 26 20:38:03 UTC 2011 
Responsible-Changed-Why:  
Over to maintaner(s) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=158307 
Responsible-Changed-From-To: freebsd-net->hrs 
Responsible-Changed-By: hrs 
Responsible-Changed-When: Mon Jun 27 17:21:52 UTC 2011 
Responsible-Changed-Why:  
I'll take this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=158307 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/158307: commit references a PR
Date: Tue, 20 Sep 2011 00:29:26 +0000 (UTC)

 Author: hrs
 Date: Tue Sep 20 00:29:17 2011
 New Revision: 225682
 URL: http://svn.freebsd.org/changeset/base/225682
 
 Log:
   Copy ip6po_minmtu and ip6po_prefer_tempaddr in ip6_copypktopts().  This fixes
   inconsistency when options are specified by both setsockopt() and ancillary
   data types.
   
   PR:		kern/158307
   Approved by:	re (bz)
 
 Modified:
   head/sys/netinet6/ip6_output.c
 
 Modified: head/sys/netinet6/ip6_output.c
 ==============================================================================
 --- head/sys/netinet6/ip6_output.c	Tue Sep 20 00:23:59 2011	(r225681)
 +++ head/sys/netinet6/ip6_output.c	Tue Sep 20 00:29:17 2011	(r225682)
 @@ -2367,6 +2367,8 @@ copypktopts(struct ip6_pktopts *dst, str
  	dst->ip6po_hlim = src->ip6po_hlim;
  	dst->ip6po_tclass = src->ip6po_tclass;
  	dst->ip6po_flags = src->ip6po_flags;
 +	dst->ip6po_minmtu = src->ip6po_minmtu;
 +	dst->ip6po_prefer_tempaddr = src->ip6po_prefer_tempaddr;
  	if (src->ip6po_pktinfo) {
  		dst->ip6po_pktinfo = malloc(sizeof(*dst->ip6po_pktinfo),
  		    M_IP6OPT, canwait);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: hrs 
State-Changed-When: Tue Sep 20 02:15:32 UTC 2011 
State-Changed-Why:  
A patch has been committed to -HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=158307 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/158307: commit references a PR
Date: Mon,  5 Mar 2012 18:41:02 +0000 (UTC)

 Author: hrs
 Date: Mon Mar  5 18:40:53 2012
 New Revision: 232560
 URL: http://svn.freebsd.org/changeset/base/232560
 
 Log:
   MFC r225682:
   Copy ip6po_minmtu and ip6po_prefer_tempaddr in ip6_copypktopts().  This fixes
   inconsistency when options are specified by both setsockopt() and ancillary
   data types.
   
   PR:	kern/158307
 
 Modified:
   stable/8/sys/netinet6/ip6_output.c
 Directory Properties:
   stable/8/sys/   (props changed)
 
 Modified: stable/8/sys/netinet6/ip6_output.c
 ==============================================================================
 --- stable/8/sys/netinet6/ip6_output.c	Mon Mar  5 18:20:31 2012	(r232559)
 +++ stable/8/sys/netinet6/ip6_output.c	Mon Mar  5 18:40:53 2012	(r232560)
 @@ -2328,6 +2328,8 @@ copypktopts(struct ip6_pktopts *dst, str
  	dst->ip6po_hlim = src->ip6po_hlim;
  	dst->ip6po_tclass = src->ip6po_tclass;
  	dst->ip6po_flags = src->ip6po_flags;
 +	dst->ip6po_minmtu = src->ip6po_minmtu;
 +	dst->ip6po_prefer_tempaddr = src->ip6po_prefer_tempaddr;
  	if (src->ip6po_pktinfo) {
  		dst->ip6po_pktinfo = malloc(sizeof(*dst->ip6po_pktinfo),
  		    M_IP6OPT, canwait);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/158307: commit references a PR
Date: Wed,  7 Mar 2012 01:30:56 +0000 (UTC)

 Author: hrs
 Date: Wed Mar  7 01:30:42 2012
 New Revision: 232634
 URL: http://svn.freebsd.org/changeset/base/232634
 
 Log:
   MFS r232560:
   Copy ip6po_minmtu and ip6po_prefer_tempaddr in ip6_copypktopts().  This fixes
   inconsistency when options are specified by both setsockopt() and ancillary
   data types.
   
   PR:		kern/158307
   Approved by:	re (kib)
 
 Modified:
   releng/8.3/sys/netinet6/ip6_output.c
 Directory Properties:
   releng/8.3/sys/   (props changed)
 
 Modified: releng/8.3/sys/netinet6/ip6_output.c
 ==============================================================================
 --- releng/8.3/sys/netinet6/ip6_output.c	Wed Mar  7 01:26:24 2012	(r232633)
 +++ releng/8.3/sys/netinet6/ip6_output.c	Wed Mar  7 01:30:42 2012	(r232634)
 @@ -2310,6 +2310,8 @@ copypktopts(struct ip6_pktopts *dst, str
  	dst->ip6po_hlim = src->ip6po_hlim;
  	dst->ip6po_tclass = src->ip6po_tclass;
  	dst->ip6po_flags = src->ip6po_flags;
 +	dst->ip6po_minmtu = src->ip6po_minmtu;
 +	dst->ip6po_prefer_tempaddr = src->ip6po_prefer_tempaddr;
  	if (src->ip6po_pktinfo) {
  		dst->ip6po_pktinfo = malloc(sizeof(*dst->ip6po_pktinfo),
  		    M_IP6OPT, canwait);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
