diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-22 07:16:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-22 07:16:58 +0000 |
commit | e284539fe4d076330ca7f09cc791bdfb4164c0ce (patch) | |
tree | ce098f92974ac157f0a567e9288ef1cc704621e6 /src/include/gnunet_tun_lib.h | |
parent | f3adc188b34d52c03d0abbe05edbee3b0c227483 (diff) | |
download | gnunet-e284539fe4d076330ca7f09cc791bdfb4164c0ce.tar.gz gnunet-e284539fe4d076330ca7f09cc791bdfb4164c0ce.zip |
-move all code that deals with IP/policy to regex/string conversion to tun
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r-- | src/include/gnunet_tun_lib.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h index c670a19fb..90487265b 100644 --- a/src/include/gnunet_tun_lib.h +++ b/src/include/gnunet_tun_lib.h | |||
@@ -455,5 +455,30 @@ GNUNET_TUN_ipv6toregex (const struct in6_addr *ipv6, | |||
455 | unsigned int prefixlen, char *rxstr); | 455 | unsigned int prefixlen, char *rxstr); |
456 | 456 | ||
457 | 457 | ||
458 | /** | ||
459 | * Convert an exit policy to a regular expression. The exit policy | ||
460 | * specifies a set of subnets this peer is willing to serve as an | ||
461 | * exit for; the resulting regular expression will match the | ||
462 | * IPv6 address strings as returned by 'GNUNET_TUN_ipv6toregex'. | ||
463 | * | ||
464 | * @param policy exit policy specification | ||
465 | * @return regular expression, NULL on error | ||
466 | */ | ||
467 | char * | ||
468 | GNUNET_TUN_ipv6policy2regex (const char *policy); | ||
469 | |||
470 | |||
471 | /** | ||
472 | * Convert an exit policy to a regular expression. The exit policy | ||
473 | * specifies a set of subnets this peer is willing to serve as an | ||
474 | * exit for; the resulting regular expression will match the | ||
475 | * IPv4 address strings as returned by 'GNUNET_TUN_ipv4toregex'. | ||
476 | * | ||
477 | * @param policy exit policy specification | ||
478 | * @return regular expression, NULL on error | ||
479 | */ | ||
480 | char * | ||
481 | GNUNET_TUN_ipv4policy2regex (const char *policy); | ||
482 | |||
458 | 483 | ||
459 | #endif | 484 | #endif |