]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/ip/Address.h
Merged from parent (trunk r10600).
[thirdparty/squid.git] / src / ip / Address.h
index 12612cefbae483078e7bd0f1049442668fa62dd0..3f5ee88bdeae5e1a37f8f8d8ec18ab802fe817e5 100644 (file)
@@ -321,6 +321,13 @@ public:
      */
     int matchIPAddr(const Address &rhs) const;
 
+    /** Compare taking IP, port, protocol, etc. into account. Returns an
+        integer  less  than,  equal  to,  or greater than zero if the object
+        is found, respectively, to be less than, to match, or to be greater
+        than rhs. The exact ordering algorithm is not specified and may change.
+    */
+    int compareWhole(const Ip::Address &rhs) const;
+
     /**
      *  Get RFC 3493 addrinfo structure from the Ip::Address data
      *  for protocol-neutral socket operations.