TUN-6586: Change ICMP proxy to only build for Darwin and use echo ID to track flows

This commit is contained in:
cthuang
2022-08-22 17:41:51 +01:00
parent efb99d90d7
commit 7e760f9fcc
7 changed files with 355 additions and 130 deletions

View File

@@ -2,6 +2,7 @@ package packet
import (
"errors"
"fmt"
"net/netip"
"sync"
)
@@ -12,7 +13,9 @@ var (
// FlowID represents a key type that can be used by FlowTracker
type FlowID interface {
ID() string
// Type returns the name of the type that implements the FlowID
Type() string
fmt.Stringer
}
type Flow struct {