summaryrefslogtreecommitdiffhomepage
path: root/wgengine/netstack/gro/gro_disabled.go
blob: 9b2ae69955c970862021234f3640a3b07dff2eda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause

//go:build ios || ts_omit_gro

package gro

import (
	"runtime"

	"tailscale.com/net/packet"
)

type GRO struct{}

func NewGRO() *GRO {
	if runtime.GOOS == "ios" {
		panic("unsupported on iOS")
	}
	panic("GRO disabled in build")

}

func (g *GRO) SetDispatcher(any) {}

func (g *GRO) Enqueue(_ *packet.Parsed) {}

func (g *GRO) Flush() {}