Exporting PDUs from pcap in linux machine

Solution 1:

I want to achieve this on a linux machine using tshark/wireshark

Step 1: Make sure you have Wireshark 1.12 or later on your Linux machine.

Step 2: Run Wireshark on the file.

Step 3: Select "Export PDUs to file" from the "File" menu.

Step 4: Select OSI layer 3 in the dialog it pops up.

Step 5: Click OK.