Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

SRC/pcping.h File Reference


Detailed Description

Definition in file pcping.h.

Go to the source code of this file.

Functions

W32_FUNC int _ping (DWORD host, DWORD count, const BYTE *patt, size_t len)
 Format and send an ICMP echo request (ping).
W32_FUNC DWORD _chk_ping (DWORD host, DWORD *number)
 Check for ICMP echo reply in ping-cache.
W32_FUNC void add_ping (DWORD host, DWORD tim, DWORD number)
 Add an ICMP echo reply to the ping-cache.


Function Documentation

W32_FUNC DWORD _chk_ping DWORD  host,
DWORD number
 

Check for ICMP echo reply in ping-cache.

Return values:
reply time in system ticks.
(DWORD)-1 on failure
Definition at line 172 of file pcping.c.

W32_FUNC int _ping DWORD  host,
DWORD  countnum,
const BYTE pattern,
size_t  len
 

Format and send an ICMP echo request (ping).

  • countnum is the ICMP index value.
  • pattern optional data that will be sent.
  • len length of pattern data.
    Return values:
    0 if ARP fails or error in lower layer.
    Note:
    if pattern or len is 0, only an 12 byte ICMP echo header will be sent.

    Sends fragments if needed.

Definition at line 48 of file pcping.c.

References _arp_resolve(), _default_tos, _eth_formatpacket(), _ping(), BYTE, DWORD, eth_address, set_timeout(), sin_mask, and WORD.


Generated on Wed Aug 4 08:55:57 2010 for Watt-32 tcp/ip by doxygen 1.3.8