$OpenBSD: patch-src_config_c,v 1.3 2021/07/11 09:23:19 bket Exp $

Index: src/config.c
--- src/config.c.orig
+++ src/config.c
@@ -455,3 +455,21 @@ struct SubnetList *parseSubnetAddress(char *addrstr) {
 
     return tmpSubnet;
 }
+
+struct vifconfig *
+config_getinterface(const char *ifname)
+{
+	struct vifconfig *vc;
+
+	if (vifconf == NULL)
+		return (NULL);
+
+	for (vc = vifconf; vc; vc = vc->next) {
+		if (strcmp(vc->name, ifname))
+			continue;
+
+		return (vc);
+	}
+
+	return (NULL);
+}
