(tei stack.TransportEndpointID)
| 2142 | } |
| 2143 | |
| 2144 | func stringifyTEI(tei stack.TransportEndpointID) string { |
| 2145 | localHostPort := net.JoinHostPort(tei.LocalAddress.String(), strconv.Itoa(int(tei.LocalPort))) |
| 2146 | remoteHostPort := net.JoinHostPort(tei.RemoteAddress.String(), strconv.Itoa(int(tei.RemotePort))) |
| 2147 | return fmt.Sprintf("%s -> %s", remoteHostPort, localHostPort) |
| 2148 | } |
| 2149 | |
| 2150 | func ipPortOfNetstackAddr(a tcpip.Address, port uint16) (ipp netip.AddrPort, ok bool) { |
| 2151 | if addr, ok := netip.AddrFromSlice(a.AsSlice()); ok { |