Implemented RTT measurements on link establishment and link teardown procedure

This commit is contained in:
Mark Qvist 2018-04-21 13:54:22 +02:00
parent de8d9cf722
commit ece4f732f4
3 changed files with 133 additions and 53 deletions

View file

@ -74,6 +74,8 @@ class Transport:
if interface.OUT:
should_transmit = True
if packet.destination.type == RNS.Destination.LINK:
if packet.destination.status == RNS.Link.CLOSED:
should_transmit = False
if interface != packet.destination.attached_interface:
should_transmit = False