aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_tun_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-22 07:18:25 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-22 07:18:25 +0000
commit4b0bf15f1e839c26be9312bac4b6e72e9c341b56 (patch)
treeffbf966a937a619255fdaa0e6e1e076f22e58453 /src/include/gnunet_tun_lib.h
parente284539fe4d076330ca7f09cc791bdfb4164c0ce (diff)
downloadgnunet-4b0bf15f1e839c26be9312bac4b6e72e9c341b56.tar.gz
gnunet-4b0bf15f1e839c26be9312bac4b6e72e9c341b56.zip
rename GNUNET_TUN_ipvXtoregex to GNUNET_TUN_ipvXtoregexsearch to clarify that this is for generating the search strings
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r--src/include/gnunet_tun_lib.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h
index 90487265b..1b0bb716d 100644
--- a/src/include/gnunet_tun_lib.h
+++ b/src/include/gnunet_tun_lib.h
@@ -47,13 +47,13 @@
47 47
48 48
49/** 49/**
50 * Maximum regex string length for use with GNUNET_TUN_ipv4toregex 50 * Maximum regex string length for use with GNUNET_TUN_ipv4toregexsearch
51 */ 51 */
52#define GNUNET_TUN_IPV4_REGEXLEN 32 + 6 52#define GNUNET_TUN_IPV4_REGEXLEN 32 + 6
53 53
54 54
55/** 55/**
56 * Maximum regex string length for use with GNUNET_TUN_ipv6toregex 56 * Maximum regex string length for use with GNUNET_TUN_ipv6toregexsearch
57 */ 57 */
58#define GNUNET_TUN_IPV6_REGEXLEN 128 + 6 58#define GNUNET_TUN_IPV6_REGEXLEN 128 + 6
59 59
@@ -438,7 +438,7 @@ GNUNET_TUN_calculate_icmp_checksum (struct GNUNET_TUN_IcmpHeader *icmp,
438 * bytes long. 438 * bytes long.
439 */ 439 */
440void 440void
441GNUNET_TUN_ipv4toregex (const struct in_addr *ip, const char *netmask, 441GNUNET_TUN_ipv4toregexsearch (const struct in_addr *ip, const char *netmask,
442 char *rxstr); 442 char *rxstr);
443 443
444 444
@@ -451,7 +451,7 @@ GNUNET_TUN_ipv4toregex (const struct in_addr *ip, const char *netmask,
451 * bytes long. 451 * bytes long.
452 */ 452 */
453void 453void
454GNUNET_TUN_ipv6toregex (const struct in6_addr *ipv6, 454GNUNET_TUN_ipv6toregexsearch (const struct in6_addr *ipv6,
455 unsigned int prefixlen, char *rxstr); 455 unsigned int prefixlen, char *rxstr);
456 456
457 457
@@ -459,7 +459,7 @@ GNUNET_TUN_ipv6toregex (const struct in6_addr *ipv6,
459 * Convert an exit policy to a regular expression. The exit policy 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 460 * specifies a set of subnets this peer is willing to serve as an
461 * exit for; the resulting regular expression will match the 461 * exit for; the resulting regular expression will match the
462 * IPv6 address strings as returned by 'GNUNET_TUN_ipv6toregex'. 462 * IPv6 address strings as returned by 'GNUNET_TUN_ipv6toregexsearch'.
463 * 463 *
464 * @param policy exit policy specification 464 * @param policy exit policy specification
465 * @return regular expression, NULL on error 465 * @return regular expression, NULL on error
@@ -472,7 +472,7 @@ GNUNET_TUN_ipv6policy2regex (const char *policy);
472 * Convert an exit policy to a regular expression. The exit policy 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 473 * specifies a set of subnets this peer is willing to serve as an
474 * exit for; the resulting regular expression will match the 474 * exit for; the resulting regular expression will match the
475 * IPv4 address strings as returned by 'GNUNET_TUN_ipv4toregex'. 475 * IPv4 address strings as returned by 'GNUNET_TUN_ipv4toregexsearch'.
476 * 476 *
477 * @param policy exit policy specification 477 * @param policy exit policy specification
478 * @return regular expression, NULL on error 478 * @return regular expression, NULL on error