Author: kp
Date: Thu Nov 22 19:59:04 2018
New Revision: 340779
URL: https://svnweb.freebsd.org/changeset/base/340779

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

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

Modified: stable/11/sbin/pfctl/pfctl_parser.c
==============================================================================
--- stable/11/sbin/pfctl/pfctl_parser.c Thu Nov 22 19:59:02 2018        
(r340778)
+++ stable/11/sbin/pfctl/pfctl_parser.c Thu Nov 22 19:59:04 2018        
(r340779)
@@ -1404,6 +1404,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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to