1
votes

I am trying to extract or determine features like pay load, sequence number, hop count, hop addresses, time to live in a packet using Wireshark. I got ttl value, source and destination addresses, but I am not able to find the payload, hop count, hop address etc.

Is there any way I can read these values from wireshark file using a java program, and display them in a Java frame?

1
What sort of help do you need? This is extremely broad at the moment. Show your code and explain a specific problem.tnw
actually I haven't started writing code. I was first looking for the features using wireshark, I have got the packet IP features but features like hop count and hop address etc are not there. So if you have any idea how can i get these values in the wireshark, it will be very helpful. And i am just asking is it possible to connect wireshark with a java interface. because writing these values manually for every packet is time consuming and a head ache. :/Himanshu
It is two questions. NEVER ask two questions in a single one!peterh

1 Answers

1
votes

If by "hop addresses" you mean that you want the network or MAC addresses of each router through which a packet traveled when going from the source to the destination, neither Wireshark nor any other packet analyzer on the planet can, in the general case, determine that, because that information isn't recorded in the packet!

There is an IPv4 "record route" option that, if added to the packet when it is sent, will cause routers to add their address to the route when they transmit the packet; however, there's no simple switch to turn that on - the program sending the packets would have to be modified to request that, if the operating system on which it's running supports doing so.