Date: Fri, 4 Dec 2015 17:33:33 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r291772 - stable/10/sys/netpfil/ipfw Message-ID: <201512041733.tB4HXXPb006572@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Fri Dec 4 17:33:33 2015 New Revision: 291772 URL: https://svnweb.freebsd.org/changeset/base/291772 Log: MFC r291001: ipfw: Fix dynamic IPv6 rules showing junk for non-specified address masks. Relnotes: yes Modified: stable/10/sys/netpfil/ipfw/ip_fw_dynamic.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/netpfil/ipfw/ip_fw_dynamic.c ============================================================================== --- stable/10/sys/netpfil/ipfw/ip_fw_dynamic.c Fri Dec 4 17:23:19 2015 (r291771) +++ stable/10/sys/netpfil/ipfw/ip_fw_dynamic.c Fri Dec 4 17:33:33 2015 (r291772) @@ -715,6 +715,9 @@ ipfw_install_state(struct ip_fw *rule, i id.fib = M_GETFIB(args->m); if (IS_IP6_FLOW_ID (&(args->f_id))) { + bzero(&id.src_ip6, sizeof(id.src_ip6)); + bzero(&id.dst_ip6, sizeof(id.dst_ip6)); + if (limit_mask & DYN_SRC_ADDR) id.src_ip6 = args->f_id.src_ip6; if (limit_mask & DYN_DST_ADDR)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512041733.tB4HXXPb006572>