Question Locked

How to get captred only ICMP packet using jpcap library?

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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(128) 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.

2 replies

by seanferd

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.

This discussion is closed to new replies.