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

Stuart Watt stuart at morungos.com
Tue Mar 16 09:56:46 PDT 2010


Fulko Hew wrote:
>
> I can probably open some kind of raw ICMP protocol socket and add
> it to the select() list the app already has.  ... The devil is in the 
> details.
>
I haven't done raw socket stuff for years, but the following URL looks 
like it might be a start. It's in C, but all the functions are the 
standard socket ones built into Perl, so it should be straightforward to 
adapt.

http://www.planet-lab.org/raw_sockets/api_icmp.html

All the best
Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20100316/3db37928/attachment-0001.html>


More information about the toronto-pm mailing list