aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-08-26 11:30:09 -0400
committerNick Mathewson <nickm@torproject.org>2013-08-26 11:30:09 -0400
commita5f6cb908c32dcf8c7efbde2702b70ccd36e82f0 (patch)
treec10833c2980e903066ea558ddb9fe1cd513a158b /src
parenta5610cfa64189db693dbad3efaa973d6720c42fe (diff)
downloadtor-a5f6cb908c32dcf8c7efbde2702b70ccd36e82f0.tar.gz
tor-a5f6cb908c32dcf8c7efbde2702b70ccd36e82f0.zip
Increase POLICY_BUF_LEN to 72 to accomodate IPv6 exit policy items.
Fixes bug 9596; bugfix on 0.2.4.7-alpha.
Diffstat (limited to 'src')
-rw-r--r--src/or/policies.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/policies.h b/src/or/policies.h
index c0e7a9efce..facbbb6b5a 100644
--- a/src/or/policies.h
+++ b/src/or/policies.h
@@ -12,10 +12,11 @@
#ifndef TOR_POLICIES_H
#define TOR_POLICIES_H
-/* (length of "accept 255.255.255.255/255.255.255.255:65535-65535\n" plus a
- * NUL.)
+/* (length of
+ * "accept6 [ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]/128:65535-65535\n"
+ * plus a terminating NUL, rounded up to a nice number.)
*/
-#define POLICY_BUF_LEN 52
+#define POLICY_BUF_LEN 72
int firewall_is_fascist_or(void);
int fascist_firewall_allows_address_or(const tor_addr_t *addr, uint16_t port);