Fix direction handling.
Dump TX bytes.
Merged changes from jgpud.