diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2020-05-08 15:38:42 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-08 15:40:27 -0700 |
commit | e4d2d21f6b1b93146378ed5edc0c55d2ae4fb3af (patch) | |
tree | 5aade9f9682f663d4e55394325fc9859d723cc5d /test/packetimpact/testbench/layers.go | |
parent | 21b71395a6aa2eafbc4c59222574d56c2db2e23b (diff) |
Add UDP send/recv packetimpact tests.
Fixes #2654
PiperOrigin-RevId: 310642216
Diffstat (limited to 'test/packetimpact/testbench/layers.go')
-rw-r--r-- | test/packetimpact/testbench/layers.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/packetimpact/testbench/layers.go b/test/packetimpact/testbench/layers.go index 165f62d3b..49370377d 100644 --- a/test/packetimpact/testbench/layers.go +++ b/test/packetimpact/testbench/layers.go @@ -898,10 +898,7 @@ func (l *UDP) match(other Layer) bool { } func (l *UDP) length() int { - if l.Length == nil { - return header.UDPMinimumSize - } - return int(*l.Length) + return header.UDPMinimumSize } // merge implements Layer.merge. |