tor/src/or
Nick Mathewson 2008728df7 Notice a little faster if we're running out of virtual addresses
We were not decrementing "available" every time we did
++next_virtual_addr in addressmap_get_virtual_address: we left out the
--available when we skipped .00 and .255 addresses.

This didn't actually cause a bug in most cases, since the failure mode
was to keep looping around the virtual addresses until we found one,
or until available hit zero.  It could have given you an infinite loop
rather than a useful message, however, if you said "VirtualAddrNetwork
127.0.0.255/32" or something broken like that.

Spotted by cypherpunks
2011-01-06 13:29:36 -05:00
..
buffers.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
circuitbuild.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
circuitlist.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
circuituse.c close idle dir-fetch circs early 2010-04-23 18:35:11 -04:00
command.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
config.c Change gabelmoo's IP address and ports. 2010-12-16 13:28:30 +01:00
connection.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
connection_edge.c Notice a little faster if we're running out of virtual addresses 2011-01-06 13:29:36 -05:00
connection_or.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
control.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
cpuworker.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
directory.c fetch relay descriptors from v3 authorities 2010-04-03 21:53:29 -04:00
dirserv.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
dirvote.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
dns.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
dnsserv.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
eventdns.c Fix compile warnings on Snow Leopard 2009-09-01 18:36:27 +02:00
eventdns.h Fix compile warnings on Snow Leopard 2009-09-01 18:36:27 +02:00
eventdns_tor.h Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
geoip.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
hibernate.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
main.c Remove a needless keep_open_until_flushed 2010-09-08 10:23:29 -04:00
Makefile.am Add --enable-static-(openssl|libevent) options 2010-01-24 14:34:47 -05:00
networkstatus.c Scale CONSENSUS_MIN_SECONDS_BEFORE_CACHING by voting interval 2010-08-17 11:55:39 -04:00
ntmain.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
onion.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
or.h Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
policies.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
reasons.c Use S_CASE for ehostunreach, not E_CASE. Partial backport of 69deb22f. Fixes 0.2.1 compilation on windows 2010-11-23 12:47:21 -05:00
relay.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
rendclient.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
rendcommon.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
rendmid.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
rendservice.c Make payloads into uint8_t. 2010-12-15 22:31:11 -05:00
rephist.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
router.c finally get rid of "clique mode" 2010-04-23 19:39:42 -04:00
routerlist.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
routerparse.c Enforce multiplicity rules when parsing annotations. 2010-11-10 16:02:02 -05:00
test.c testsuite: Prevent the main thread from starving the worker threads 2010-04-12 18:15:20 -04:00
test_data.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00
tor_main.c Update Tor Project copyright years 2010-02-27 17:14:21 -05:00