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/icmpv6.h | |
parent | 12605efded6928add185d8d9666b4be9a67b7945 (diff) | |
download | ipxe-5c2ffc26cc9b73ef60cbd123cd90f499dc01bbc2.zip ipxe-5c2ffc26cc9b73ef60cbd123cd90f499dc01bbc2.tar.gz ipxe-5c2ffc26cc9b73ef60cbd123cd90f499dc01bbc2.tar.bz2 |
[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/icmpv6.h')
-rw-r--r-- | src/include/ipxe/icmpv6.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/include/ipxe/icmpv6.h b/src/include/ipxe/icmpv6.h index c8f0be0..c09a71a 100644 --- a/src/include/ipxe/icmpv6.h +++ b/src/include/ipxe/icmpv6.h @@ -13,28 +13,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <ipxe/tables.h> #include <ipxe/iobuf.h> #include <ipxe/netdevice.h> - -/** An ICMPv6 header */ -struct icmpv6_header { - /** Type */ - uint8_t type; - /** Code */ - uint8_t code; - /** Checksum */ - uint16_t chksum; -} __attribute__ (( packed )); - -/** An ICMPv6 echo request/reply */ -struct icmpv6_echo { - /** ICMPv6 header */ - struct icmpv6_header icmp; - /** Identifier */ - uint16_t ident; - /** Sequence number */ - uint16_t sequence; - /** Data */ - uint8_t data[0]; -} __attribute__ (( packed )); +#include <ipxe/icmp.h> /** An ICMPv6 handler */ struct icmpv6_handler { |