/[inetutils]/inetutils/libicmp/libping.c
ViewVC logotype

Diff of /inetutils/libicmp/libping.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by gray, Fri Jul 29 17:09:11 2005 UTC revision 1.10 by gray, Sat Jul 30 17:11:27 2005 UTC
# Line 91  ping_init (int type, int ident) Line 91  ping_init (int type, int ident)
91    p->ping_fd = fd;    p->ping_fd = fd;
92    p->ping_type = type;    p->ping_type = type;
93    p->ping_count = 0;    p->ping_count = 0;
94    p->ping_interval = PING_INTERVAL;    p->ping_interval = PING_DEFAULT_INTERVAL;
95    p->ping_datalen  = sizeof (icmphdr_t);    p->ping_datalen  = sizeof (icmphdr_t);
96    /* Make sure we use only 16 bits in this field, id for icmp is a u_short.  */    /* Make sure we use only 16 bits in this field, id for icmp is a u_short.  */
97    p->ping_ident = ident & 0xFFFF;    p->ping_ident = ident & 0xFFFF;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26