svn commit: r340264 - head/sbin/pfctl

Kristof Provost kp at FreeBSD.org
Thu Nov 8 21:53:10 UTC 2018


Author: kp
Date: Thu Nov  8 21:53:09 2018
New Revision: 340264
URL: https://svnweb.freebsd.org/changeset/base/340264

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

Modified:
  head/sbin/pfctl/pfctl_parser.c

Modified: head/sbin/pfctl/pfctl_parser.c
==============================================================================
--- head/sbin/pfctl/pfctl_parser.c	Thu Nov  8 21:36:45 2018	(r340263)
+++ head/sbin/pfctl/pfctl_parser.c	Thu Nov  8 21:53:09 2018	(r340264)
@@ -1403,6 +1403,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;


More information about the svn-src-head mailing list