support of dynamic/128 and %any6

This commit is contained in:
Andreas Steffen
2009-02-05 22:13:48 +00:00
parent 49971c4ce5
commit c59825fbfc
12 changed files with 35 additions and 25 deletions
+4
View File
@@ -453,6 +453,10 @@ host_t *host_create_from_dns(char *string, int af, u_int16_t port)
{
return host_create_any(af ? af : AF_INET);
}
if (streq(string, "%any6"))
{
return host_create_any(af ? af : AF_INET6);
}
else if (strchr(string, ':'))
{
/* gethostbyname does not like IPv6 addresses - fallback */
+1
View File
@@ -1046,6 +1046,7 @@ identification_t *identification_create_from_string(char *string)
else if (strchr(string, '@') == NULL)
{
if (streq(string, "%any")
|| streq(string, "%any6")
|| streq(string, "0.0.0.0")
|| streq(string, "*")
|| streq(string, "::")