# icmp

Internet control message protocol (ICMP) BETA

Author | Matthew Schinkel - borntechi.com, copyright © 2009, all rights reserved.
Adapted-by |
Compiler | >=2.4n

Description

    Sends, receives and replys to icmp ECHO (PING) messages

Sources

    http://www.faqs.org/rfcs/rfc792.html
    http://www.visualland.net/view.php?cid=857&protocol=ARP&title=1.%20Basic-update

Dependencies

No dependency found

## Summary

### Global variables/contants

- `const ICMP_SOURCE_QUENCH = 4`
- `const byte ECHO_HEADER_LENGTH = 8`
- `const ICMP_TIME_EXCEEDED = 11`
- `const ICMP_INFORMATION_REPLY = 16`
- `const word ICMP_SEQUENCE_NUMBER = 6`
- `const word ICMP_CHECKSUM = 2`
- `const ICMP_REDIRECT = 5`
- `const word ICMP_IDENTIFIER = 4`
- `const ICMP_INFORMATION_REQUEST = 15`
- `const byte ICMP_TYPE = 0`
- `const ICMP_PARAMETER_PROBLEM = 12`
- `const ICMP_TIMESTAMP_REPLY = 14`
- `const byte ICMP_CODE = 1`
- `const ICMP_ECHO = 8`
- `const ICMP_ECHO_REPLY = 0`
- `const ICMP_DESTINATION_UNREACHABLE = 3`
- `const ICMP_TIMESTAMP = 13`

### Procedures

- `icmp_send_echo()`
- `icmp_send_echo_reply()`
- `icmp_read_packet()`

### Functions

## API details

### Global variables/contants

- `const ICMP_SOURCE_QUENCH = 4`

  No documentation found

- `const byte ECHO_HEADER_LENGTH = 8`

  No documentation found

- `const ICMP_TIME_EXCEEDED = 11`

  No documentation found

- `const ICMP_INFORMATION_REPLY = 16`

  No documentation found

- `const word ICMP_SEQUENCE_NUMBER = 6`

  No documentation found

- `const word ICMP_CHECKSUM = 2`

  No documentation found

- `const ICMP_REDIRECT = 5`

  No documentation found

- `const word ICMP_IDENTIFIER = 4`

  No documentation found

- `const ICMP_INFORMATION_REQUEST = 15`

  No documentation found

- `const byte ICMP_TYPE = 0`

  No documentation found

- `const ICMP_PARAMETER_PROBLEM = 12`

  No documentation found

- `const ICMP_TIMESTAMP_REPLY = 14`

  No documentation found

- `const byte ICMP_CODE = 1`

  No documentation found

- `const ICMP_ECHO = 8`

  No documentation found

- `const ICMP_ECHO_REPLY = 0`

      ICMP message types

- `const ICMP_DESTINATION_UNREACHABLE = 3`

  No documentation found

- `const ICMP_TIMESTAMP = 13`

  No documentation found

### Procedures

- `icmp_send_echo()`

      Sends an echo (PING) message

- `icmp_send_echo_reply()`

      Sends an echo reply message

- `icmp_read_packet()`

      Read an ICMP packet and do something with it's data

### Functions

## Related samples

Here are the list of samples which use this library:

18f4620 | 18f4620_network_all_in_one.jal
18f4620 | 18f4620_network_slip_isr_ping_udp.jal
18f4620 | 18f4620_network_ping.jal