diff options
author | Kevin Krakauer <krakauer@google.com> | 2021-01-19 12:10:01 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-19 12:14:08 -0800 |
commit | 833ba3590b422d453012e5b2ec2e780211d9caf9 (patch) | |
tree | d66ae365a679dbe51a9a05b9b76094d4214768b4 /test/iptables/iptables_test.go | |
parent | a2ec1932c9b76d80d3af93aa74acf945829cd582 (diff) |
Ensure that IP{V6}_RECVORIGDSTADDR yields the post-NAT address and port.
PiperOrigin-RevId: 352624174
Diffstat (limited to 'test/iptables/iptables_test.go')
-rw-r--r-- | test/iptables/iptables_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/iptables/iptables_test.go b/test/iptables/iptables_test.go index 4733146c0..9a4f60a9a 100644 --- a/test/iptables/iptables_test.go +++ b/test/iptables/iptables_test.go @@ -424,3 +424,11 @@ func TestNATPreOriginalDst(t *testing.T) { func TestNATOutOriginalDst(t *testing.T) { singleTest(t, NATOutOriginalDst{}) } + +func TestNATPreRECVORIGDSTADDR(t *testing.T) { + singleTest(t, NATPreRECVORIGDSTADDR{}) +} + +func TestNATOutRECVORIGDSTADDR(t *testing.T) { + singleTest(t, NATOutRECVORIGDSTADDR{}) +} |