Skip to content

Commit

Permalink
Compare label instead of interface name against dhcp_except and tftp …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
DL6ER committed Dec 26, 2021
1 parent 763f469 commit c408653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
}
else
for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next)
if (tmp->name && wildcard_match(tmp->name, ifr.ifr_name))
if (tmp->name && wildcard_match(tmp->name, label))
{
tftp_ok = 0;
dhcp_ok = 0;
Expand All @@ -520,7 +520,7 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
/* dedicated tftp interface list */
tftp_ok = 0;
for (tmp = daemon->tftp_interfaces; tmp; tmp = tmp->next)
if (tmp->name && wildcard_match(tmp->name, ifr.ifr_name))
if (tmp->name && wildcard_match(tmp->name, label))
tftp_ok = 1;
}
#endif
Expand Down

0 comments on commit c408653

Please sign in to comment.