ports/net/igmpproxy/patches/patch-src_config_c

25 lines
431 B
Text

Index: src/config.c
--- src/config.c.orig
+++ src/config.c
@@ -471,3 +471,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);
+}