Module: PacketFu::ICMPv6HeaderMixin
- Included in:
- ICMPv6Packet
- Defined in:
- lib/packetfu/protos/icmpv6/mixin.rb
Overview
This Mixin simplifies access to the ICMPv6Headers. Mix this in with your packet interface, and it will add methods that essentially delegate to the ‘icmpv6_header’ method (assuming that it is a ICMPv6Header object)
Instance Method Summary collapse
- #icmpv6_code ⇒ Object
- #icmpv6_code=(v) ⇒ Object
- #icmpv6_sum ⇒ Object
- #icmpv6_sum=(v) ⇒ Object
- #icmpv6_sum_readable ⇒ Object
- #icmpv6_type ⇒ Object
- #icmpv6_type=(v) ⇒ Object
Instance Method Details
#icmpv6_code ⇒ Object
9 |
# File 'lib/packetfu/protos/icmpv6/mixin.rb', line 9 def icmpv6_code; self.icmpv6_header.icmpv6_code; end |
#icmpv6_code=(v) ⇒ Object
8 |
# File 'lib/packetfu/protos/icmpv6/mixin.rb', line 8 def icmpv6_code=(v); self.icmpv6_header.icmpv6_code= v; end |
#icmpv6_sum ⇒ Object
11 |
# File 'lib/packetfu/protos/icmpv6/mixin.rb', line 11 def icmpv6_sum; self.icmpv6_header.icmpv6_sum; end |
#icmpv6_sum=(v) ⇒ Object
10 |
# File 'lib/packetfu/protos/icmpv6/mixin.rb', line 10 def icmpv6_sum=(v); self.icmpv6_header.icmpv6_sum= v; end |
#icmpv6_sum_readable ⇒ Object
12 |
# File 'lib/packetfu/protos/icmpv6/mixin.rb', line 12 def icmpv6_sum_readable; self.icmpv6_header.icmpv6_sum_readable; end |
#icmpv6_type ⇒ Object
7 |
# File 'lib/packetfu/protos/icmpv6/mixin.rb', line 7 def icmpv6_type; self.icmpv6_header.icmpv6_type; end |
#icmpv6_type=(v) ⇒ Object
6 |
# File 'lib/packetfu/protos/icmpv6/mixin.rb', line 6 def icmpv6_type=(v); self.icmpv6_header.icmpv6_type= v; end |