implement source address token generation and validation

ref #121
This commit is contained in:
Lucas Clemente
2016-05-23 18:13:39 +02:00
parent c3f8837dfe
commit 9539169fa4
3 changed files with 234 additions and 0 deletions

View File

@@ -48,3 +48,6 @@ const MaxSessionUnprocessedPackets = 128
// RetransmissionThreshold + 1 is the number of times a packet has to be NACKed so that it gets retransmitted
const RetransmissionThreshold uint8 = 3
// STKExpiryTimeSec is the valid time of a source address token in seconds
const STKExpiryTimeSec = 24 * 60 * 60