Skip to content

Commit 99ac072

Browse files
committed
enable unit tests to run when !linux
1 parent dbe5019 commit 99ac072

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/network/mtu_unsupported.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@
33

44
package network
55

6-
func getDefaultMTU() (int, error) { return 1500, nil }
6+
func GetDefaultMTU() (int, error) { return 1500, nil }
7+
8+
const (
9+
MinMTUIPv4 uint32 = 576 // RFC 791
10+
MinMTUIPv6 uint32 = 1280 // RFC 8200
11+
MaxMTU uint32 = 1500
12+
)

0 commit comments

Comments
 (0)