discover pmtu with binary search

issue #15
This commit is contained in:
Matthias Radestock committed 2014-08-31 13:39:44 +01:00
1 parent 848d852e0d
commit 2649796369
3 files changed
+70 -58

No files matched your search

+6 -4
View File
@@ -66,7 +66,6 @@ type LocalConnection struct {
established bool
stackFrag bool
effectivePMTU int
pmtuVerified bool
SessionKey *[32]byte
heartbeatStop chan<- interface{}
forwardChan chan<- *ForwardedFrame
@@ -90,13 +89,16 @@ type Forwarder struct {
conn *LocalConnection
ch <-chan *ForwardedFrame
stop <-chan interface{}
pmtuVerifyTick <-chan time.Time
pmtuVerified <-chan int
verifyPMTUTick <-chan time.Time
verifyPMTU <-chan int
pmtuVerifyCount uint
enc Encryptor
udpSender UDPSender
maxPayload int
effectivePMTU int
pmtuVerified bool
highestGoodPMTU int
unverifiedPMTU int
lowestBadPMTU int
}
type UDPPacket struct {