X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Ftest%2Fircd_in_addr_t.c;h=381460789508a7cb0911744a1b4b571ca9efae7e;hp=1a65aec59eaa20a8f1dca570e8c513d6a1cc608f;hb=b7f25dcf93cc44cd9f5b4132c976e72118bcd44f;hpb=eeebbe9bf464ee89dbc12568cae4cc4be8ca836d diff --git a/ircd/test/ircd_in_addr_t.c b/ircd/test/ircd_in_addr_t.c index 1a65aec..3814607 100644 --- a/ircd/test/ircd_in_addr_t.c +++ b/ircd/test/ircd_in_addr_t.c @@ -29,7 +29,7 @@ static struct address_test test_addrs[] = { {{ 0, 0, 0, 0, 0, 0, 0, 1 }}, "AAAAAA", "_AAB", 1, 0, 1 }, { "127.0.0.1", "127.0.0.1", - {{ 0, 0, 0, 0, 0, 0, 0x7f00, 1 }}, + {{ 0, 0, 0, 0, 0, 0xffff, 0x7f00, 1 }}, "B]AAAB", "B]AAAB", 1, 1, 1 }, { "::ffff:127.0.0.3", "127.0.0.3", {{ 0, 0, 0, 0, 0, 0xffff, 0x7f00, 3 }}, @@ -123,6 +123,11 @@ static struct ipmask_test test_masks[] = { { "a:*", {{ 0xa, 0, 0, 0, 0, 0, 0, 0 }}, 1, 1, 16 }, { "a:*:*", {{ 0xa, 0, 0, 0, 0, 0, 0, 0 }}, 1, 1, 16 }, { "a:/16", {{ 0xa, 0, 0, 0, 0, 0, 0, 0 }}, 1, 1, 16 }, + { "0.0.0.0.0/1", {{ 0, 0, 0, 0, 0, 0, 0, 0 }}, 0, 0, 0 }, + { "2607:3f00:1:30c:9999*", + {{ 0x2607, 0x3f00, 1, 0x30c, 0x9999, 0, 0, 0 }}, 1, 1, 80 }, + { "1234:5678:9abc:def0:feed:abba:cabb:1e55::", + {{ 0, 0, 0, 0, 0, 0, 0, 0 }}, 1, 0, 0 }, { 0 } };