diff options
author | Roger Dingledine <arma@torproject.org> | 2005-06-29 19:15:23 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-06-29 19:15:23 +0000 |
commit | 6b21c8e74fea5184b106f24e739418421167d4d5 (patch) | |
tree | 88e61e05215914d110e5218144c7496108bfd835 | |
parent | caf7af26d79a33cbec5c32fe692085aa6c449c15 (diff) | |
download | tor-6b21c8e74fea5184b106f24e739418421167d4d5.tar.gz tor-6b21c8e74fea5184b106f24e739418421167d4d5.zip |
make the local and private network masks explicit when we complain
svn:r4501
-rw-r--r-- | src/or/routerlist.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 2a81cb2cc3..f6237413f4 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1263,11 +1263,11 @@ exit_policy_implicitly_allows_local_networks(addr_policy_t *policy, static struct { uint32_t addr; uint32_t mask; const char *network; } private_networks[] = { - { 0x7f000000, 0xff000000, "localhost (127.x)" }, - { 0x0a000000, 0xff000000, "addresses in private network 10.x" }, - { 0xa9fe0000, 0xffff0000, "addresses in private network 169.254.x" }, - { 0xac100000, 0xfff00000, "addresses in private network 172.16.x" }, - { 0xc0a80000, 0xffff0000, "addresses in private network 192.168.x" }, + { 0x7f000000, 0xff000000, "localhost (127.0.0.0/8)" }, + { 0x0a000000, 0xff000000, "addresses in private network 10.0.0.0/8" }, + { 0xa9fe0000, 0xffff0000, "addresses in private network 169.254.0.0/16" }, + { 0xac100000, 0xfff00000, "addresses in private network 172.16.0.0/12" }, + { 0xc0a80000, 0xffff0000, "addresses in private network 192.168.0.0/16" }, { 0,0,NULL}, }; for (i=0; private_networks[i].addr; ++i) { |