diff options
author | Ian Gudger <igudger@google.com> | 2018-05-17 12:49:16 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-05-17 12:50:22 -0700 |
commit | a8d7cee3e819f0e278c8da9ff2e7d72fbe0e82b8 (patch) | |
tree | 3da0e396c5738007dcd5e418c1fb4cdc67c4843a /pkg/tcpip/transport/tcp | |
parent | 31386185fe7c2079ee412a411e536a5bf9e9eb25 (diff) |
Fix sendto for dual stack UDP sockets
Previously, dual stack UDP sockets bound to an IPv4 address could not use
sendto to communicate with IPv4 addresses. Further, dual stack UDP sockets
bound to an IPv6 address could use sendto to communicate with IPv4 addresses.
Neither of these behaviors are consistent with Linux.
PiperOrigin-RevId: 197036024
Change-Id: Ic3713efc569f26196e35bb41e6ad63f23675fc90
Diffstat (limited to 'pkg/tcpip/transport/tcp')
-rw-r--r-- | pkg/tcpip/transport/tcp/endpoint_state.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/endpoint_state.go b/pkg/tcpip/transport/tcp/endpoint_state.go index 212d2513a..b1e249bff 100644 --- a/pkg/tcpip/transport/tcp/endpoint_state.go +++ b/pkg/tcpip/transport/tcp/endpoint_state.go @@ -213,6 +213,7 @@ func loadError(s string) *tcpip.Error { tcpip.ErrInvalidOptionValue, tcpip.ErrNoLinkAddress, tcpip.ErrBadAddress, + tcpip.ErrNetworkUnreachable, } messageToError = make(map[string]*tcpip.Error) |