I want to extract all the PDUs from a pcap on linux machine. I have a windows system with 64-bit processing, which has wireshark installed on it. The wireshark provides a option of exporting PDUs as
File -> Export PDUs to file
This pop ups a new window that need how you want to export the PDUs. Select OSI layer 3 and click OK. This gives me the desired PDUs from the pcap.
I want to achieve this on a linux machine using tshark/wireshark or any other software. I have tried through tshark, but not able to achieve this till now.