aboutsummaryrefslogtreecommitdiff
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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tun/test_regex.c b/src/tun/test_regex.c
index 341d8b9a09..3f0f898a92 100644
--- a/src/tun/test_regex.c
+++ b/src/tun/test_regex.c
@@ -121,12 +121,17 @@ test_policy6toregex (const char *policy,
int
main (int argc, char *argv[])
{
- GNUNET_log_setup ("test-regex", "WARNING", NULL);
-
int error;
+ char *r;
+ GNUNET_log_setup ("test-regex", "WARNING", NULL);
error = 0;
+ /* this is just a performance test ... */
+ r = GNUNET_TUN_ipv4policy2regex ("1.2.3.4/16:!25;");
+ GNUNET_break (NULL != r);
+ GNUNET_free (r);
+
error +=
test_iptoregex ("192.1.2.3", 2086,
"4-0826-C0010203",