ethpipe.c: fixed bugs