[tpm] how to detect ICMP 'port unreachable'?

Fulko Hew fulko.hew at gmail.com
Tue Mar 16 07:19:42 PDT 2010


On Tue, Mar 16, 2010 at 9:53 AM, Kartik Thakore <thakore.kartik at gmail.com>wrote:

> Hi Fulko,
>


> Have you tried NetPacket::ICMP? I have used this module before to decode
> ICMP packets and get data based on their ICMP code. ICMP_UNREACH is the code
> you want.
>

I looked at that last night. It provides a way to decode packets, but
my confusion lies in, how would I  (easily) get the packet to decode...
while I was in the middle of actually attempting to receive the actual
application data.  (I will however, investigate further.)

... snip ...


> use Net::Pcap;
>

... snip ...

Yes, I had thought of that, but running a packet sniffer is a 'hell of an
overkill'
to determine something (that in retrospect) should have been reported back
to the application (somehow).

So far, all I seem to have is an application level timeout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20100316/438d74d9/attachment-0001.html>


More information about the toronto-pm mailing list