mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-01 22:12:31 +00:00
tstest/natlab: be more paranoid about IP versions from gvisor
I didn't actually see this, but added this while debugging something and figured it'd be good to keep. Updates #13038 Change-Id: I67934c8a329e0233f79c3b08516fd6bad6bfe22a Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
e0bdd5d058
commit
3a8cfbc381
@ -234,7 +234,7 @@ func (n *network) handleIPPacketFromGvisor(ipRaw []byte) {
|
|||||||
ipRaw,
|
ipRaw,
|
||||||
layers.LayerTypeIPv6, gopacket.Lazy)
|
layers.LayerTypeIPv6, gopacket.Lazy)
|
||||||
default:
|
default:
|
||||||
return
|
panic(fmt.Sprintf("unexpected IP packet version %v", ipVer))
|
||||||
}
|
}
|
||||||
flow, ok := flow(goPkt)
|
flow, ok := flow(goPkt)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user