* lib/command.c: Add missing HAVE_IPV6 defines.
see bug id #23: http://bugzilla.dishone.st/show_bug.cgi?id=23
#define STATE_SLASH 6
#define STATE_MASK 7
+#ifdef HAVE_IPV6
+
enum match_type
cmd_ipv6_match (char *str)
{
return exact_match;
}
+#endif /* HAVE_IPV6 */
+
#define DECIMAL_STRLEN_MAX 10
int
matched++;
}
}
+#ifdef HAVE_IPV6
else if (CMD_IPV6 (str))
{
if (cmd_ipv6_match (command))
matched++;
}
}
+#endif /* HAVE_IPV6 */
else if (CMD_IPV4 (str))
{
if (cmd_ipv4_match (command))
matched++;
}
}
+#ifdef HAVE_IPV6
else if (CMD_IPV6 (str))
{
if (cmd_ipv6_match (command) == exact_match)
matched++;
}
}
+#endif /* HAVE_IPV6 */
else if (CMD_IPV4 (str))
{
if (cmd_ipv4_match (command) == exact_match)
match++;
}
break;
+#ifdef HAVE_IPV6
case ipv6_match:
if (CMD_IPV6 (str))
match++;
match++;
}
break;
+#endif /* HAVE_IPV6 */
case ipv4_match:
if (CMD_IPV4 (str))
match++;
return NULL;
}
+#ifdef HAVE_IPV6
if (CMD_IPV6 (dst))
{
if (cmd_ipv6_match (src))
else
return NULL;
}
+#endif /* HAVE_IPV6 */
if (CMD_IPV4 (dst))
{