]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ip/Address.h
Added whole-object comparison method so that IpAddress objects can be
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 2 May 2010 01:20:05 +0000 (19:20 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 2 May 2010 01:20:05 +0000 (19:20 -0600)
commit607a7bd462ac432387d643695c37c0e5feee5789
tree8a13d5e8371e02c861f1f300a45284db59cee442
parent98d9bd29ac550872b6b68d281f05f54816d0e5d3
Added whole-object comparison method so that IpAddress objects can be
properly sorted and used as std::map index.

Existing IpAddress comparison operators do not work well because they only
compare IP addresses (and incorrectly compare "none" and/or "any" IP
addresses).
src/ip/IpAddress.cc
src/ip/IpAddress.h