* Should be called after an authenticated data packet is sent. */
()
| 136 | |
| 137 | /* Should be called after an authenticated data packet is sent. */ |
| 138 | func (peer *Peer) timersDataSent() { |
| 139 | if peer.timersActive() && !peer.timers.newHandshake.IsPending() { |
| 140 | peer.timers.newHandshake.Mod(KeepaliveTimeout + RekeyTimeout + time.Millisecond*time.Duration(fastrandn(RekeyTimeoutJitterMaxMs))) |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | /* Should be called after an authenticated data packet is received. */ |
| 145 | func (peer *Peer) timersDataReceived() { |
no test coverage detected