split source into multiple files by packet type