a4669d3 should be reflected in the main branch as well
TODO first: figure out what is happening exactly first. Seems like the fix might be better as a <= (instead of the <) than starting at -1.
Also add some unit tests for various ACK packets to see if the correct sequences are interpreted.