added tcpdev and refactored packdump