Skip to content

Commit d68cf8b

Browse files
committed
Compare label instead of interface name against dhcp_except and tftp interfaces to extend their scope to interface aliases. The man page does not mention that they are limited to "real" interfaces and stop working once an alias interface is specified (even if valid).
Signed-off-by: DL6ER <[email protected]>
1 parent 7932982 commit d68cf8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/network.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
506506
}
507507
else
508508
for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next)
509-
if (tmp->name && wildcard_match(tmp->name, ifr.ifr_name))
509+
if (tmp->name && wildcard_match(tmp->name, label))
510510
{
511511
tftp_ok = 0;
512512
dhcp_ok = 0;
@@ -520,7 +520,7 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
520520
/* dedicated tftp interface list */
521521
tftp_ok = 0;
522522
for (tmp = daemon->tftp_interfaces; tmp; tmp = tmp->next)
523-
if (tmp->name && wildcard_match(tmp->name, ifr.ifr_name))
523+
if (tmp->name && wildcard_match(tmp->name, label))
524524
tftp_ok = 1;
525525
}
526526
#endif

0 commit comments

Comments
 (0)