various helper functions to allow manual rotation of trace files, start/stop packet dumper, resize & init a vector, length of a table, rotate to a named file