Params: Print the IP components in the right order.

This commit is contained in:
Gabe Black 2011-01-04 17:11:49 -05:00
parent 89cf3f6e85
commit 498ea0bdab

View file

@ -138,8 +138,8 @@ operator<<(ostream &stream, const IpAddress &ia)
{
uint32_t ip = ia.ip();
ccprintf(stream, "%x.%x.%x.%x",
(uint8_t)(ip >> 0), (uint8_t)(ip >> 8),
(uint8_t)(ip >> 16), (uint8_t)(ip >> 24));
(uint8_t)(ip >> 24), (uint8_t)(ip >> 16),
(uint8_t)(ip >> 8), (uint8_t)(ip >> 0));
return stream;
}