Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2018 19:59:02 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r340778 - stable/12/sbin/pfctl
Message-ID:  <201811221959.wAMJx2YX084033@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Thu Nov 22 19:59:02 2018
New Revision: 340778
URL: https://svnweb.freebsd.org/changeset/base/340778

Log:
  MFC r340264:
  
  pfctl: Populate ifname in ifa_lookup()
  
  pfctl_adjust_skip_ifaces() relies on this name.

Modified:
  stable/12/sbin/pfctl/pfctl_parser.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/pfctl/pfctl_parser.c
==============================================================================
--- stable/12/sbin/pfctl/pfctl_parser.c	Thu Nov 22 19:56:52 2018	(r340777)
+++ stable/12/sbin/pfctl/pfctl_parser.c	Thu Nov 22 19:59:02 2018	(r340778)
@@ -1400,6 +1400,7 @@ ifa_lookup(const char *ifa_name, int flags)
 				set_ipmask(n, 128);
 		}
 		n->ifindex = p->ifindex;
+		n->ifname = strdup(p->ifname);
 
 		n->next = NULL;
 		n->tail = n;



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