Provide independent control over which interfaces get TFTP.

This commit is contained in:
Simon Kelley
2013-07-29 19:49:07 +01:00
parent edf0bde0c6
commit 2937f8a040
6 changed files with 58 additions and 16 deletions

View File

@@ -359,6 +359,16 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
}
#endif
if (daemon->tftp_interfaces)
{
/* 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))
tftp_ok = 1;
}
/* add to list */
if ((iface = whine_malloc(sizeof(struct irec))))
{