Skip to content

Commit

Permalink
Merge branch 'dev' into use-bind-in-raw-sockets2
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin authored Dec 3, 2024
2 parents c43e110 + 6ae4d2d commit e32c6ce
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 37 deletions.
63 changes: 32 additions & 31 deletions Common++/header/IpAddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -1082,40 +1082,41 @@ namespace pcpp
std::unique_ptr<IPv4Network> m_IPv4Network;
std::unique_ptr<IPv6Network> m_IPv6Network;
};
} // namespace pcpp

inline std::ostream& operator<<(std::ostream& os, const pcpp::IPv4Address& ipv4Address)
{
os << ipv4Address.toString();
return os;
}
inline std::ostream& operator<<(std::ostream& os, const pcpp::IPv4Address& ipv4Address)
{
os << ipv4Address.toString();
return os;
}

inline std::ostream& operator<<(std::ostream& os, const pcpp::IPv6Address& ipv6Address)
{
os << ipv6Address.toString();
return os;
}
inline std::ostream& operator<<(std::ostream& os, const pcpp::IPv6Address& ipv6Address)
{
os << ipv6Address.toString();
return os;
}

inline std::ostream& operator<<(std::ostream& os, const pcpp::IPAddress& ipAddress)
{
os << ipAddress.toString();
return os;
}
inline std::ostream& operator<<(std::ostream& os, const pcpp::IPAddress& ipAddress)
{
os << ipAddress.toString();
return os;
}

inline std::ostream& operator<<(std::ostream& os, const pcpp::IPv4Network& network)
{
os << network.toString();
return os;
}
inline std::ostream& operator<<(std::ostream& os, const pcpp::IPv4Network& network)
{
os << network.toString();
return os;
}

inline std::ostream& operator<<(std::ostream& os, const pcpp::IPv6Network& network)
{
os << network.toString();
return os;
}
inline std::ostream& operator<<(std::ostream& os, const pcpp::IPv6Network& network)
{
os << network.toString();
return os;
}

inline std::ostream& operator<<(std::ostream& os, const pcpp::IPNetwork& network)
{
os << network.toString();
return os;
}
inline std::ostream& operator<<(std::ostream& os, const pcpp::IPNetwork& network)
{
os << network.toString();
return os;
}

} // namespace pcpp
12 changes: 6 additions & 6 deletions Common++/header/MacAddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ namespace pcpp
private:
uint8_t m_Address[6] = { 0 };
};
} // namespace pcpp

inline std::ostream& operator<<(std::ostream& os, const pcpp::MacAddress& macAddress)
{
os << macAddress.toString();
return os;
}
inline std::ostream& operator<<(std::ostream& os, const pcpp::MacAddress& macAddress)
{
os << macAddress.toString();
return os;
}
} // namespace pcpp

0 comments on commit e32c6ce

Please sign in to comment.