ethpipe.c: fixed ring buffer overflow and packet drop problem