strengthen bad-packet tests in network thread, plus a little bit of general cleanup
strengthen bad-packet tests in network thread, plus a little bit of general cleanup

CHIMEFRB/ch_frb_io,CHIMEFRB/ch_frb_io,CHIMEFRB/ch_frb_io