netsec-ethz / scion-apps

Public repository for SCION applications
Apache License 2.0
20 stars 43 forks source link

bwtester: simplification, cleanup #209

Closed matzf closed 2 years ago

matzf commented 3 years ago

Simplification, refactoring, cleanup of the bwtester codebase.

This does not introduce any (significant) behaviour changes; the applications are compatible with the version before this change. One breaking change is that we've removed the rather pointless -id and -log_dir flags from the bwtestserver. In the client, the output format has been slightly adapted.

The motivation for this is to make it easier to convert bwtester to use the pan library. In particular, one goal was to make HandleDCCnnSend/Receive functions (shared between client and server) dumber, i.e making them do nothing but Write/Read on the connection. This will help to adapt this to pan with its asymmetric dialed/listening connections.

The most relevant changes are:

Note that this is a limited cleanup pass, trying not to change too much at once and not to introduce breaking changes. The code (and the functionality) can clearly still be improved...


This change is Reviewable