summaryrefslogtreecommitdiff
path: root/src/tun/test_regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tun/test_regex.c')
-rw-r--r--src/tun/test_regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tun/test_regex.c b/src/tun/test_regex.c
index 8af1abd02..a0c3e99fd 100644
--- a/src/tun/test_regex.c
+++ b/src/tun/test_regex.c
@@ -39,7 +39,7 @@ test_iptoregex (const char *ipv4, const char *netmask, const char *expectedv4,
39 char rxv6[GNUNET_TUN_IPV6_REGEXLEN]; 39 char rxv6[GNUNET_TUN_IPV6_REGEXLEN];
40 40
41 GNUNET_assert (1 == inet_pton (AF_INET, ipv4, &a)); 41 GNUNET_assert (1 == inet_pton (AF_INET, ipv4, &a));
42 GNUNET_TUN_ipv4toregex (&a, netmask, rxv4); 42 GNUNET_TUN_ipv4toregexsearch (&a, netmask, rxv4);
43 43
44 44
45 if (0 != strcmp (rxv4, expectedv4)) 45 if (0 != strcmp (rxv4, expectedv4))
@@ -50,7 +50,7 @@ test_iptoregex (const char *ipv4, const char *netmask, const char *expectedv4,
50 } 50 }
51 51
52 GNUNET_assert (1 == inet_pton (AF_INET6, ipv6, &b)); 52 GNUNET_assert (1 == inet_pton (AF_INET6, ipv6, &b));
53 GNUNET_TUN_ipv6toregex (&b, prefixlen, rxv6); 53 GNUNET_TUN_ipv6toregexsearch (&b, prefixlen, rxv6);
54 54
55 if (0 != strcmp (rxv6, expectedv6)) 55 if (0 != strcmp (rxv6, expectedv6))
56 { 56 {