.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd February 23, 2025
+.Dd February 24, 2025
.Dt DHCPCD.CONF 5
.Os
.Sh NAME
.It Ic interface Ar interface
Subsequent options are only parsed for this
.Ar interface .
+Pattern matching is allowed by
+.Xr fnmatch 3 .
.It Ic ipv4ll_time Ar seconds
Wait for
.Ar seconds
#include <ctype.h>
#include <errno.h>
+#include <fnmatch.h>
#include <getopt.h>
#include <grp.h>
#include <inttypes.h>
skip = 1;
continue;
}
- if (ifname && strcmp(line, ifname) == 0)
+ if (ifname && fnmatch(line, ifname, 0) == 0)
skip = 0;
else
skip = 1;
int i;
for (i = 0; i < ctx->ifcc; i++) {
- if (strcmp(ctx->ifcv[i], ifname) == 0)
+ if (fnmatch(ctx->ifcv[i], ifname, 0) == 0)
return 1;
}
return 0;