Ignore:
Timestamp:
Mar 19, 2017, 11:11:28 AM (10 days ago)
Author:
brainslayer
Message:

latest dnsmasq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/dnsmasq/src/network.c

    r31441 r31703  
    245245  int dhcp_ok = 1;
    246246  int auth_dns = 0;
     247  int is_label = 0;
    247248#if defined(HAVE_DHCP) || defined(HAVE_TFTP)
    248249  struct iname *tmp;
     
    265266  if (!label)
    266267    label = ifr.ifr_name;
     268  else
     269    is_label = strcmp(label, ifr.ifr_name);
    267270 
    268271  /* maintain a list of all addresses on all interfaces for --local-service option */
     
    483486      iface->done = iface->multicast_done = iface->warned = 0;
    484487      iface->index = if_index;
     488      iface->label = is_label;
    485489      if ((iface->name = whine_malloc(strlen(ifr.ifr_name)+1)))
    486490        {
     
    10331037  if (advice)
    10341038    my_syslog(LOG_WARNING, _("LOUD WARNING: use --bind-dynamic rather than --bind-interfaces to avoid DNS amplification attacks via these interface(s)"));
     1039}
     1040
     1041void warn_wild_labels(void)
     1042{
     1043  struct irec *iface;
     1044
     1045  for (iface = daemon->interfaces; iface; iface = iface->next)
     1046    if (iface->found && iface->name && iface->label)
     1047      my_syslog(LOG_WARNING, _("warning: using interface %s instead"), iface->name);
    10351048}
    10361049
Note: See TracChangeset for help on using the changeset viewer.