diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-01-12 20:19:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-01-12 20:19:43 +0000 |
commit | 75b754d269802f2072514d55b94946912c55e067 (patch) | |
tree | 4cb9f0c2baa0ddd55694b72936646427ed27932b /src/tun/test_regex.c | |
parent | f2a94edfe687f220160f2f58d92a53063ab98357 (diff) | |
download | gnunet-75b754d269802f2072514d55b94946912c55e067.tar.gz gnunet-75b754d269802f2072514d55b94946912c55e067.zip |
generate compact regular expressions if range is negated (#3226), switch default policy to not-25 (SMTP) as we can now work with that
Diffstat (limited to 'src/tun/test_regex.c')
-rw-r--r-- | src/tun/test_regex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tun/test_regex.c b/src/tun/test_regex.c index 3f0f898a9..21a2eed1e 100644 --- a/src/tun/test_regex.c +++ b/src/tun/test_regex.c | |||
@@ -153,7 +153,10 @@ main (int argc, char *argv[]) | |||
153 | "4-(0050|0051)-C001...."); | 153 | "4-(0050|0051)-C001...."); |
154 | error += | 154 | error += |
155 | test_policy4toregex ("192.1.0.0/8:!3-65535;", | 155 | test_policy4toregex ("192.1.0.0/8:!3-65535;", |
156 | "4-(0001|0002)-C0......"); | 156 | "4-000(0|1|2)-C0......"); |
157 | error += | ||
158 | test_policy4toregex ("192.1.0.0/8:!25-56;", | ||
159 | "4-(0(0(0.|1(0|1|2|3|4|5|6|7|8)|3(9|A|B|C|D|E|F)|(4|5|6|7|8|9|A|B|C|D|E|F).)|(1|2|3|4|5|6|7|8|9|A|B|C|D|E|F)..)|(1|2|3|4|5|6|7|8|9|A|B|C|D|E|F)...)-C0......"); | ||
157 | error += | 160 | error += |
158 | test_policy6toregex ("E1E1::1;", | 161 | test_policy6toregex ("E1E1::1;", |
159 | "6-....-E1E10000000000000000000000000001"); | 162 | "6-....-E1E10000000000000000000000000001"); |