#endif
}
-
static isc_boolean_t
address_okay(isc_interface_t *isc_if) {
DPRINTF(4, ("address_okay: loopback - OK\n"));
return (ISC_TRUE);
}
- /*
- * Check if the interface is specific
- */
- if (ISC_LIST_HEAD(specific_interface_list)!= NULL) {
- specific_interface_t *iface;
- for (iface = ISC_LIST_HEAD(specific_interface_list); iface != NULL; iface = ISC_LIST_NEXT(iface, link))
- if (strcasecmp(isc_if->name, iface->name) == 0) {
- DPRINTF(4, ("address_okay: specific interface name matched - OK\n"));
- return (ISC_TRUE);
- }
- }
/*
* Check if the address is limit
*/
if (isc_netaddr_equal(&(isc_if->address), laddr->addr)) {
DPRINTF(4, ("address_okay: specific interface address matched - OK\n"));
return (ISC_TRUE);
- } else {
- DPRINTF(4, ("address_okay: specific interface name NOT matched - FAIL\n"));
- return (ISC_FALSE);
}
}
- else {
- if (listen_to_virtual_ips == 0 &&
- (strchr(isc_if->name, (int)':') != NULL)) {
- DPRINTF(4, ("address_okay: virtual ip/alias - FAIL\n"));
- return (ISC_FALSE);
- }
+ if (listen_to_virtual_ips == 0 &&
+ (strchr(isc_if->name, (int)':') != NULL)) {
+ DPRINTF(4, ("address_okay: virtual ip/alias - FAIL\n"));
+ return (ISC_FALSE);
}
-
/*
- * Check if the interface is specified
+ * Check if the interface is specific
*/
- /*
- if (specific_interface != NULL) {
- if (strcasecmp(isc_if->name, specific_interface) == 0) {
- DPRINTF(4, ("address_okay: specific interface name matched - OK\n"));
- return (ISC_TRUE);
- } else {
- DPRINTF(4, ("address_okay: specific interface name NOT matched - FAIL\n"));
- return (ISC_FALSE);
- }
+ if (ISC_LIST_HEAD(specific_interface_list)!= NULL) {
+ specific_interface_t *iface;
+ for (iface = ISC_LIST_HEAD(specific_interface_list); iface != NULL; iface = ISC_LIST_NEXT(iface, link))
+ if (strcasecmp(isc_if->name, iface->name) == 0) {
+ DPRINTF(4, ("address_okay: specific interface name matched - OK\n"));
+ return (ISC_TRUE);
+ }
}
- else {
- if (listen_to_virtual_ips == 0 &&
- (strchr(isc_if->name, (int)':') != NULL)) {
- DPRINTF(4, ("address_okay: virtual ip/alias - FAIL\n"));
- return (ISC_FALSE);
- }
+ if (interface_optioncount > 0) {
+ DPRINTF(4, ("address_okay: FAIL\n"));
+ return (ISC_FALSE);
}
-*/
DPRINTF(4, ("address_okay: OK\n"));
return (ISC_TRUE);
}