1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-29 21:14:28 +01:00

Added a traceroute example and made the existing examples compile.

This commit is contained in:
Matias Fontanini
2012-08-15 08:35:02 -03:00
parent ad7936dfbe
commit 4cf00d7682
4 changed files with 198 additions and 35 deletions

View File

@@ -44,7 +44,12 @@ namespace Tins {
operator uint32_t() const;
operator std::string() const;
bool operator==(const std::string &rhs) const;
std::string to_string() const;
bool operator==(const IPv4Address &rhs) const {
return ip_addr == rhs.ip_addr;
}
bool operator!=(const std::string &rhs) const {
return !(*this == rhs);
}