diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-10-21 14:10:07 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-10-21 15:08:12 +0100 |
commit | 5c2ffc26cc9b73ef60cbd123cd90f499dc01bbc2 (patch) | |
tree | 5dc77a8f4b54549e1468ecf93d1cd5cc454f6e60 /src/include/ipxe/ping.h | |
parent | 12605efded6928add185d8d9666b4be9a67b7945 (diff) | |
download | ipxe-5c2ffc26cc9b73ef60cbd123cd90f499dc01bbc2.tar.gz |
[icmp] Add support for sending ICMP echo requests
Merge common functionality between IPv4 and IPv6 ICMP echo handling,
and add support for transmitting ICMP echo requests and delivering
ICMP echo replies to a (not yet implemented) ping_rx() function.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/ping.h')
-rw-r--r-- | src/include/ipxe/ping.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/ipxe/ping.h b/src/include/ipxe/ping.h new file mode 100644 index 000000000..6cd376b6f --- /dev/null +++ b/src/include/ipxe/ping.h @@ -0,0 +1,18 @@ +#ifndef _IPXE_PING_H +#define _IPXE_PING_H + +/** @file + * + * ICMP ping protocol + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include <ipxe/iobuf.h> +#include <ipxe/tcpip.h> + +extern int ping_rx ( struct io_buffer *iobuf, + struct sockaddr_tcpip *st_src ); + +#endif /* _IPXE_PING_H */ |