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

Kartik Thakore thakore.kartik at gmail.com
Tue Mar 16 05:28:57 PDT 2010


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.

Kartik Thakore

On 2010-03-16, at 12:47 AM, Fulko Hew <fulko.hew at gmail.com> wrote:

>
>
> On Mon, Mar 15, 2010 at 11:24 PM, <hanker at ifdsgroup.com> wrote:
>
> AfaIk,
> No err checking is avail on that level. I suggest go one or two  
> levels up in osi and negotiate protocol (I assume you have picked  
> one already?), eg: hello, wait for hello in  return, sending xxx  
> bytes, wait for go ahead in return... So on
>
>
> Nope... can't... Its SNMP and I'm querying a remote address.
> The address exists, but there is no SNMP daemon on the std port.
> so I query, and the remote end returns 'no port'.  Since the ICMP  
> isn't returned
> upstream, SNMP assumes a 'no response', times out, and retries.
>
> ... All this time wasted retrying when the system already told us
> there was no one there!
>
> There has to be a better way!
>
> Fulko
>
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20100316/df427071/attachment.html>


More information about the toronto-pm mailing list