Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Fix IPV6_USE_MIN_MTU set by setsockopt(2) being...



details:   https://anonhg.NetBSD.org/src/rev/1b7b8c69e772
branches:  trunk
changeset: 805821:1b7b8c69e772
user:      roy <roy%NetBSD.org@localhost>
date:      Tue Jan 20 21:42:36 2015 +0000

description:
Fix IPV6_USE_MIN_MTU set by setsockopt(2) being ignored when
IPV6_PKTINFO is set as a control with sendmsg(2).

diffstat:

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

diffs (26 lines):

diff -r 0f494fc54c94 -r 1b7b8c69e772 sys/netinet6/ip6_output.c
--- a/sys/netinet6/ip6_output.c Tue Jan 20 21:27:36 2015 +0000
+++ b/sys/netinet6/ip6_output.c Tue Jan 20 21:42:36 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_output.c,v 1.161 2015/01/20 21:27:36 roy Exp $     */
+/*     $NetBSD: ip6_output.c,v 1.162 2015/01/20 21:42:36 roy Exp $     */
 /*     $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $    */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.161 2015/01/20 21:27:36 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.162 2015/01/20 21:42:36 roy Exp $");
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -2214,6 +2214,7 @@
        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),



Home | Main Index | Thread Index | Old Index