Next questions on pinger

From: Evgeny Kotsuba <evgen__k@dont-contact.us>
Date: Fri, 25 Apr 2003 18:45:45 +0400

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 ?

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 ?

In may case all is work only with
     icmp = (struct icmphdr *) (void *) (pkt + iphdrlen + 4);
when iphdrlen + 4 is equal to sizeof(ip)

SY,
Evgeny Kotsuba

___________________
?????? ???? ?? ????????? ????. ???? ????????? ??????? ???????.
www.tournews.ru
Received on Fri Apr 25 2003 - 08:45:19 MDT

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