Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2016 10:04:06 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309187 - head/sys/netpfil/ipfw/nat64
Message-ID:  <201611261004.uAQA46ej032316@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Sat Nov 26 10:04:05 2016
New Revision: 309187
URL: https://svnweb.freebsd.org/changeset/base/309187

Log:
  Fix ICMPv6 Time Exceeded error message translation.
  
  Obtained from:	Yandex LLC
  Sponsored by:	Yandex LLC

Modified:
  head/sys/netpfil/ipfw/nat64/nat64_translate.c

Modified: head/sys/netpfil/ipfw/nat64/nat64_translate.c
==============================================================================
--- head/sys/netpfil/ipfw/nat64/nat64_translate.c	Sat Nov 26 07:59:57 2016	(r309186)
+++ head/sys/netpfil/ipfw/nat64/nat64_translate.c	Sat Nov 26 10:04:05 2016	(r309187)
@@ -1256,9 +1256,9 @@ nat64_handle_icmp6(struct mbuf *m, int h
 		 */
 		mtu -= sizeof(struct ip6_hdr) - sizeof(struct ip);
 		break;
-	case ICMP6_TIME_EXCEED_TRANSIT:
+	case ICMP6_TIME_EXCEEDED:
 		type = ICMP_TIMXCEED;
-		code = ICMP_TIMXCEED_INTRANS;
+		code = icmp6->icmp6_code;
 		break;
 	case ICMP6_PARAM_PROB:
 		switch (icmp6->icmp6_code) {



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