Allow trailing '*' wildcard in interface names.

This commit is contained in:
Simon Kelley committed 2013-03-15 20:30:51 +00:00
1 parent de92b479d9
commit 49333cbdbe
11 files changed
+42 -24

No files matched your search

-5
View File
@@ -2375,11 +2375,6 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
new->flags |= CONTEXT_DHCP;
else if (strstr(a[leasepos], "constructor:") == a[leasepos])
{
if (a[leasepos][strlen(a[leasepos])-1] == '*')
{
a[leasepos][strlen(a[leasepos])-1] = 0;
new->flags |= CONTEXT_WILDCARD;
}
new->template_interface = opt_string_alloc(a[leasepos] + 12);
new->flags |= CONTEXT_TEMPLATE;
}