refactor: extract pdu statics into separate file

This commit is contained in:
Matthias Radestock committed 2015-01-20 21:41:08 +00:00
1 parent 9daf753d8a
commit a1ef2def2b
2 files changed
+28 -21

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
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}
)