Support normal socket (non-NSP) name lookups in resolver (for testing)
[oweals/gnunet.git] / src / tun / test_regex.c
index 341d8b9a09d4e5441684584bad102d6330a26b5f..3f0f898a92d38919335267bdf0bf2333c14a9e53 100644 (file)
@@ -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",