String returns a string representation of a Destination.
()
| 300 | |
| 301 | // String returns a string representation of a Destination. |
| 302 | func (dest Destination) String() string { |
| 303 | addr := dest.Address.String() |
| 304 | if dest.Address.To4() == nil { |
| 305 | addr = fmt.Sprintf("[%s]", addr) |
| 306 | } |
| 307 | return fmt.Sprintf("%s:%d", addr, dest.Port) |
| 308 | } |
| 309 | |
| 310 | type Stats struct { |
| 311 | Connections uint32 `netlink:"attr:1"` |