New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't get payload of TCP packet #97
Comments
Did you add a packet factory module (e.g. pcap4j-packetfactory-static.jar) to your classpath? |
yes, i have added pcap4j-packetfactory-static-1.7.0.jar. on suse, the program can get payload from request tcp packet , but can't get payload from response tcp packet. on window, both request and response packet's payload can be captured. btw: i use get(TcpPacket.class) to build the TcpPacket. |
What does |
IPv4 total length is 264, the packet should have 224 length payload data, but there was no payload data shown below.......so strange....... [Ethernet Header (14 bytes)] |
Could you show |
I captured another response packet : the raw data: the packet : |
Hello @kaitoy |
The raw data is only 54 bytes and the packet object Pcap4J built is representing the 54 bytes. |
I used getNextRawPacket() : byte[] packet_raw = handle.getNextRawPacket(); |
So, how did you create the handle object? |
I just follow your sample: |
What's the value of the SNAPLEN? |
the value is 65536 |
I think the cause is in libpcap side. |
wireshark can't . |
I just try libpcap-1.4.0 and libpcap-1.2.1, the result is same as before.... |
Could you inquire of libpcap project the issue? |
OK , thanks ! |
Hi, Kaitory:
the scene is very simple: i have run the capture program on both side (client / server).
The text was updated successfully, but these errors were encountered: