how can i read the raw packet data from my /dev/nvme0n1p with wireshark
I have raw packet packet which has been stored in device of my linux sytem. Below is 1 of my packet content- ff ff ff ff ff ff 00 00 00 00 00 02 81 00 ab ab ab ab ab ab ab ab ab ab like that i have n no of packet which has been stored in my /dev/nvme0n1p.
problem which i am facing now is when i convert this raw data from device with below command- od -Ax -tx1 -v /dev/nvme0n1p1 [file_name]
and when i import this data with wireshark , wireshark doesn't understand where does my packet end. so i see ónly one packet with large no of byte in data.
any idea how can i read all my packets with wireshark ?
By "stored in device" do you mean that there's a file system on that device, or just raw data?
Is there one packet or are there multiple packets?
Is it just raw packet data or are there any headers, such as pcap packet headers, giving information such as the packet length and packet time stamps?
Please find below ans to your question->
By "stored in device" do you mean that there's a file system on that device, or just raw data? -> I have not created the file inside the device , I am just dumping my packet raw data into the device.
Is there one packet or are there multiple packets? -> there are multiple packets.
Is it just raw packet data or are there any headers, such as pcap packet headers, giving information such as the packet length and packet time stamps?-> Now this is important point. I have tried both way.. By including packet header along with packet data and also by storing only packet data. But did not help.
when i include packet header, wireshark thought my pcap header as my starting of my packet data and think first byte as a destination mac address.
problem which i am suspecting ...(more)