diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-22 07:18:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-22 07:18:25 +0000 |
commit | 4b0bf15f1e839c26be9312bac4b6e72e9c341b56 (patch) | |
tree | ffbf966a937a619255fdaa0e6e1e076f22e58453 /src/tun/regex.c | |
parent | e284539fe4d076330ca7f09cc791bdfb4164c0ce (diff) | |
download | gnunet-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/tun/regex.c')
-rw-r--r-- | src/tun/regex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tun/regex.c b/src/tun/regex.c index 0d259a8d5..5b844c5bc 100644 --- a/src/tun/regex.c +++ b/src/tun/regex.c | |||
@@ -107,7 +107,7 @@ ipv4netmasktoprefixlen (const char *netmask) | |||
107 | * bytes long. | 107 | * bytes long. |
108 | */ | 108 | */ |
109 | void | 109 | void |
110 | GNUNET_TUN_ipv4toregex (const struct in_addr *ip, const char *netmask, | 110 | GNUNET_TUN_ipv4toregexsearch (const struct in_addr *ip, const char *netmask, |
111 | char *rxstr) | 111 | char *rxstr) |
112 | { | 112 | { |
113 | unsigned int pfxlen; | 113 | unsigned int pfxlen; |
@@ -129,7 +129,7 @@ GNUNET_TUN_ipv4toregex (const struct in_addr *ip, const char *netmask, | |||
129 | * bytes long. | 129 | * bytes long. |
130 | */ | 130 | */ |
131 | void | 131 | void |
132 | GNUNET_TUN_ipv6toregex (const struct in6_addr *ipv6, unsigned int prefixlen, | 132 | GNUNET_TUN_ipv6toregexsearch (const struct in6_addr *ipv6, unsigned int prefixlen, |
133 | char *rxstr) | 133 | char *rxstr) |
134 | { | 134 | { |
135 | iptobinstr (AF_INET6, ipv6, rxstr); | 135 | iptobinstr (AF_INET6, ipv6, rxstr); |
@@ -143,7 +143,7 @@ GNUNET_TUN_ipv6toregex (const struct in6_addr *ipv6, unsigned int prefixlen, | |||
143 | * Convert an exit policy to a regular expression. The exit policy | 143 | * Convert an exit policy to a regular expression. The exit policy |
144 | * specifies a set of subnets this peer is willing to serve as an | 144 | * specifies a set of subnets this peer is willing to serve as an |
145 | * exit for; the resulting regular expression will match the | 145 | * exit for; the resulting regular expression will match the |
146 | * IPv4 address strings as returned by 'GNUNET_TUN_ipv4toregex'. | 146 | * IPv4 address strings as returned by 'GNUNET_TUN_ipv4toregexsearch'. |
147 | * | 147 | * |
148 | * @param policy exit policy specification | 148 | * @param policy exit policy specification |
149 | * @return regular expression, NULL on error | 149 | * @return regular expression, NULL on error |
@@ -159,7 +159,7 @@ GNUNET_TUN_ipv4policy2regex (const char *policy) | |||
159 | * Convert an exit policy to a regular expression. The exit policy | 159 | * Convert an exit policy to a regular expression. The exit policy |
160 | * specifies a set of subnets this peer is willing to serve as an | 160 | * specifies a set of subnets this peer is willing to serve as an |
161 | * exit for; the resulting regular expression will match the | 161 | * exit for; the resulting regular expression will match the |
162 | * IPv4 address strings as returned by 'GNUNET_TUN_ipv4toregex'. | 162 | * IPv4 address strings as returned by 'GNUNET_TUN_ipv4toregexsearch'. |
163 | * | 163 | * |
164 | * @param policy exit policy specification | 164 | * @param policy exit policy specification |
165 | * @return regular expression, NULL on error | 165 | * @return regular expression, NULL on error |