lib/packetgen/header/icmpv6.rb in packetgen-2.8.7 vs lib/packetgen/header/icmpv6.rb in packetgen-3.0.0
- old
+ new
@@ -5,9 +5,15 @@
# frozen_string_literal: true
module PacketGen
module Header
+ # ICMPv6 header ({https://tools.ietf.org/html/rfc4443 RFC 4443})
+ # 0 1 2 3
+ # 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+ # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ # | Type | Code | Checksum |
+ # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# A ICMPv6 header consists of:
# * a +type+ field ({Types::Int8} type),
# * a +code+ field ({Types::Int8} type),
# * a +checksum+ field ({Types::Int16} type),
# * and a +body+.