Re: Next questions on pinger

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 25 Apr 2003 17:51:10 +0200

On Friday 25 April 2003 16.45, Evgeny Kotsuba wrote:
> Hi,
>
> 1) Is there any benefit from using pinger when there is no
> paretns or when there is only one parents ?
> And if there is no any benefit - then may be it is worth not to
> run pinger and ICMP stuff for one or no parents ?

I only see a benefit of using the ICMP stuff if you have a complex
cache mesh.

So far I have not installed a single Squid with ICMP enabled.

>
> 2) pingerRecv() contains code
>
> ip = (struct iphdr *) (void *) pkt;
> #if HAVE_IP_HL
> iphdrlen = ip->ip_hl << 2;
> #else /* HAVE_IP_HL */
> [...]
> icmp = (struct icmphdr *) (void *) (pkt + iphdrlen);
>
> What is header lenth calc in such manner ?

Internet STD5, Internet Protocol

  IHL: 4 bits

    Internet Header Length is the length of the internet header in 32
    bit words, and thus points to the beginning of the data. Note
that
    the minimum value for a correct header is 5.

Regards
Henrik
Received on Fri Apr 25 2003 - 09:50:33 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:42 MST