Initial pcapng file writing support
Fixed based on testing