Skip to content

Commit 6923084

Browse files
committed
restyle constant defs on Windows
1 parent 4686156 commit 6923084

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

wgengine/magicsock/magicsock_windows.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@ import (
1111
// https://github.com/tpn/winsdk-10/blob/9b69fd26ac0c7d0b83d378dba01080e93349c2ed/Include/10.0.16299.0/shared/ws2ipdef.h
1212
const (
1313
IP_MTU_DISCOVER = 71 // IPV6_MTU_DISCOVER has the same value, which is nice.
14-
)
15-
16-
const (
17-
IP_PMTUDISC_NOT_SET = iota
18-
IP_PMTUDISC_DO
19-
IP_PMTUDISC_DONT
20-
IP_PMTUDISC_PROBE
21-
IP_PMTUDISC_MAX
14+
IP_PMTUDISC_DO = 1
2215
)
2316

2417
func tryPreventFragmentation(pconn nettype.PacketConn, logf logger.Logf, network string) {

0 commit comments

Comments
 (0)