svn commit: r349429 - releng/11.3/sys/netpfil/ipfw/nat64

Andrey V. Elsukov ae at FreeBSD.org
Wed Jun 26 17:21:32 UTC 2019


Author: ae
Date: Wed Jun 26 17:21:30 2019
New Revision: 349429
URL: https://svnweb.freebsd.org/changeset/base/349429

Log:
  Merge from stable/11:
    Fix the uninitialized use of source IPv6 address in NAT64LSN.
  
    This code is already refactored in head/, but due to the missing
    epoch(9) support it is impossible to merge. So, it is direct commit to
    stable/11.
  
    Reported by:	Patrick M. Hausen <hausen punkt de>
    Tested by:	Patrick M. Hausen <hausen punkt de>
  Approved by: re (kib, gjb)

Modified:
  releng/11.3/sys/netpfil/ipfw/nat64/nat64lsn.c
Directory Properties:
  releng/11.3/   (props changed)

Modified: releng/11.3/sys/netpfil/ipfw/nat64/nat64lsn.c
==============================================================================
--- releng/11.3/sys/netpfil/ipfw/nat64/nat64lsn.c	Wed Jun 26 17:17:33 2019	(r349428)
+++ releng/11.3/sys/netpfil/ipfw/nat64/nat64lsn.c	Wed Jun 26 17:21:30 2019	(r349429)
@@ -408,6 +408,7 @@ nat64lsn_translate4(struct nat64lsn_cfg *cfg, const st
 	} else
 		logdata = NULL;
 
+	src6 = cfg->base.plat_prefix;
 	nat64_embed_ip4(&src6, cfg->base.plat_plen, htonl(f_id->src_ip));
 	ret = nat64_do_handle_ip4(*pm, &src6, &nh->addr, lport,
 	    &cfg->base, logdata);


More information about the svn-src-all mailing list