Question

Locked

How to get captred only ICMP packet using jpcap library?

By karimkhan_it ·
i tried using jpcap library capturing a packet from LAN , i am getting many packets like this :

" Received packet :1282603371:451380 /10.10.2.60->/10.255.255.255 protocol(17) priority(0) hop(12 offset(0) ident(13480) UDP 137 > 137 "

actually what i want is by pinging my machine from any other machine in the LAN , whatever ICMP packets get transmitted , i want to capture those packets only .

And please explain fields in above output .

i am using windows OS and java technology.

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

If you don't know what you are looking at,

by seanferd In reply to How to get captred only I ...

what are you capturing packets for?

Filter the results for ICMP packets prior to capture of after capture with regular expressions or whatever. Or just use a better packet capture and analysis utility.

But if this is homework, forget it.

Back to Software Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums