| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 6 | kaklik | /*! \file icmp.h \brief ICMP Protocol Library. */ |
| 2 | //***************************************************************************** |
||
| 3 | // |
||
| 4 | // File Name : 'icmp.h' |
||
| 5 | // Title : ICMP (Internet Control Message Protocol) Protocol Library |
||
| 6 | // Author : Pascal Stang |
||
| 7 | // Created : 9/10/2004 |
||
| 8 | // Revised : 7/3/2005 |
||
| 9 | // Version : 0.1 |
||
| 10 | // Target MCU : Atmel AVR series |
||
| 11 | // Editor Tabs : 4 |
||
| 12 | // |
||
| 13 | /// \ingroup network |
||
| 14 | /// \defgroup icmp ICMP Protocol Library (icmp.c) |
||
| 15 | /// \code #include "net/icmp.h" \endcode |
||
| 16 | /// \par Description |
||
| 17 | /// ICMP (Internet Control Message Protocol) has many functions on the |
||
| 18 | /// internet, including the handling of ECHO (ping) requests, relaying |
||
| 19 | /// network route status, passing connection status messages, etc. |
||
| 20 | /// |
||
| 21 | /// This library currently handles only ICMP ECHO requests (ping), but |
||
| 22 | /// may be expanded to include other useful ICMP operations as needed. |
||
| 23 | // |
||
| 24 | // This code is distributed under the GNU Public License |
||
| 25 | // which can be found at http://www.gnu.org/licenses/gpl.txt |
||
| 26 | //***************************************************************************** |
||
| 27 | //@{ |
||
| 28 | |||
| 29 | #ifndef ICMP_H |
||
| 30 | #define ICMP_H |
||
| 31 | |||
| 32 | #include "global.h" |
||
| 33 | #include "net.h" |
||
| 34 | |||
| 35 | //#define ICMP_DEBUG_PRINT |
||
| 36 | |||
| 37 | //! Initialize ICMP protocol library. |
||
| 38 | void icmpInit(void); |
||
| 39 | |||
| 40 | //! Incoming IP packets of protocol ICMP should be passed to this function. |
||
| 41 | void icmpIpIn(icmpip_hdr* packet); |
||
| 42 | |||
| 43 | //! Forms and sends a reply in response to an ICMP ECHO request. |
||
| 44 | void icmpEchoRequest(icmpip_hdr* packet); |
||
| 45 | |||
| 46 | //! Print ICMP packet information. |
||
| 47 | void icmpPrintHeader(icmpip_hdr* packet); |
||
| 48 | |||
| 49 | #endif |
||
| 50 | //@} |
Powered by WebSVN v2.8.3