diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2020-08-10 16:20:39 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-10 16:22:31 -0700 |
commit | 0a8ae4b32f0dbc0b2a84c3f07c8c98e855a8f5fa (patch) | |
tree | 2fc8291bf663bc93c17f501ed596a0c9a094eb5d /pkg/tcpip/tcpip.go | |
parent | a1af46c20ade5566ca8c2583f10c17765a5dc3ad (diff) |
Populate IPPacketInfo with destination address
IPPacketInfo.DestinationAddr should hold the destination of the IP
packet, not the source. This change fixes that bug.
PiperOrigin-RevId: 325910766
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r-- | pkg/tcpip/tcpip.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index 45f59b60f..091bc5281 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -968,7 +968,7 @@ type IPPacketInfo struct { // LocalAddr is the local address. LocalAddr Address - // DestinationAddr is the destination address. + // DestinationAddr is the destination address found in the IP header. DestinationAddr Address } |