diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-25 14:53:23 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-25 14:53:23 +0200 |
commit | eafa3df60689d3ad2b4316c42a8360ed47072a00 (patch) | |
tree | c46afc9ff50dd193a49f901103bf30b2db26b34e /src/noise_protocol.go | |
parent | 4986cfe78b49173b8a9d86b9ec7e3024d0a3c218 (diff) |
Added fwmark code
Diffstat (limited to 'src/noise_protocol.go')
-rw-r--r-- | src/noise_protocol.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/noise_protocol.go b/src/noise_protocol.go index 0d78c84..1f1301e 100644 --- a/src/noise_protocol.go +++ b/src/noise_protocol.go @@ -32,12 +32,13 @@ const ( ) const ( - MessageInitiationSize = 148 - MessageResponseSize = 92 - MessageCookieReplySize = 64 - MessageTransportHeaderSize = 16 + MessageInitiationSize = 148 // size of handshake initation message + MessageResponseSize = 92 // size of response message + MessageCookieReplySize = 64 // size of cookie reply message + MessageTransportHeaderSize = 16 // size of data preceeding content in transport message MessageTransportSize = MessageTransportHeaderSize + poly1305.TagSize // size of empty transport - MessageKeepaliveSize = MessageTransportSize + MessageKeepaliveSize = MessageTransportSize // size of keepalive + MessageHandshakeSize = MessageInitiationSize // size of largest handshake releated message ) const ( |