31 switch(addr.family()) {
32 case INet4SocketAddress::addressFamily :
33 os << sockaddr_cast<INet4SocketAddress>(addr);
35 case INet6SocketAddress::addressFamily :
36 os << sockaddr_cast<INet6SocketAddress>(addr);
38 case UNSocketAddress::addressFamily :
39 os << sockaddr_cast<UNSocketAddress>(addr);
41 case LLSocketAddress::addressFamily :
42 os << sockaddr_cast<LLSocketAddress>(addr);
45 os <<
"[unspecified address]";
48 os <<
"[unknown address family " << addr.family() <<
"]";
BSDSocketAddress public header.
std::ostream & operator<<(std::ostream &os, Packet const &packet)
LLSocketAddress and LLAddressingPolicy public header.
UNAddressing public header.
INet[46]Address and INet[46]AddressingPolicy public header.