27 lines
747 B
Go
27 lines
747 B
Go
package router
|
|
|
|
const (
|
|
Protocol = "weave"
|
|
ProtocolVersion = 10
|
|
)
|
|
|
|
const (
|
|
ProtocolConnectionEstablished = iota
|
|
ProtocolFragmentationReceived
|
|
ProtocolStartFragmentationTest
|
|
ProtocolNonce
|
|
ProtocolFetchAll
|
|
ProtocolUpdate
|
|
ProtocolPMTUVerified
|
|
)
|
|
|
|
var (
|
|
ProtocolConnectionEstablishedByte = []byte{ProtocolConnectionEstablished}
|
|
ProtocolFragmentationReceivedByte = []byte{ProtocolFragmentationReceived}
|
|
ProtocolStartFragmentationTestByte = []byte{ProtocolStartFragmentationTest}
|
|
ProtocolNonceByte = []byte{ProtocolNonce}
|
|
ProtocolFetchAllByte = []byte{ProtocolFetchAll}
|
|
ProtocolUpdateByte = []byte{ProtocolUpdate}
|
|
ProtocolPMTUVerifiedByte = []byte{ProtocolPMTUVerified}
|
|
)
|