Lines Matching refs:netmask
28 struct in_addr netmask, struct in_addr broadcast, void *vparam);
357 /* This is a complex routine: it gets called with each (address,netmask,broadcast) triple
361 2) Fills in any netmask and broadcast addresses which have not been explicitly configured.
368 struct in_addr netmask, struct in_addr broadcast, void *vparam)
376 (is_same_net(local, context->start, netmask) ||
377 is_same_net(local, context->end, netmask)))
379 if (context->netmask.s_addr != netmask.s_addr &&
380 !(is_same_net(local, context->start, netmask) &&
381 is_same_net(local, context->end, netmask)))
385 my_syslog(MS_DHCP | LOG_WARNING, _("DHCP range %s -- %s is not consistent with netmask %s"),
386 daemon->dhcp_buff, daemon->dhcp_buff2, inet_ntoa(netmask));
388 context->netmask = netmask;
391 if (context->netmask.s_addr)
393 if (is_same_net(local, context->start, context->netmask) &&
394 is_same_net(local, context->end, context->netmask))
407 if (is_same_net(broadcast, context->start, context->netmask))
410 context->broadcast.s_addr = context->start.s_addr | ~context->netmask.s_addr;
413 else if (param->relay.s_addr && is_same_net(param->relay, context->start, context->netmask))
419 context->broadcast.s_addr = context->start.s_addr | ~context->netmask.s_addr;
475 if (is_same_net(taddr, tmp->start, tmp->netmask) &&
481 if (is_same_net(taddr, tmp->start, tmp->netmask))
642 if (is_same_net(config->addr, context->start, context->netmask))