only allow sending of retransmissions if these are RTO probe packets

This commit is contained in:
Marten Seemann
2018-03-16 18:36:37 +00:00
parent bffa2cd621
commit f052861775
6 changed files with 117 additions and 5 deletions

View File

@@ -12,6 +12,8 @@ const (
SendAck
// SendRetransmission means that retransmissions should be sent
SendRetransmission
// SendRTO means that an RTO probe packet should be sent
SendRTO
// SendAny packet should be sent
SendAny
)
@@ -24,6 +26,8 @@ func (s SendMode) String() string {
return "ack"
case SendRetransmission:
return "retransmission"
case SendRTO:
return "rto"
case SendAny:
return "any"
default: