From 87b7d2bc3d9cc8c4da313e5dc60fa497d65eb0e2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 26 Oct 2013 14:57:24 +0000 Subject: -faster port range generation, O(n) instead of O(n^2) --- src/tun/test_regex.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/tun/test_regex.c') 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", -- cgit v1.2.3-70-g09d2