### Home Classes Methods

### In Files

- lib/packetfu/protos/icmp/mixin.rb

### Methods

- #icmp_calc_sum
- #icmp_code
- #icmp_code=
- #icmp_recalc
- #icmp_sum
- #icmp_sum=
- #icmp_sum_readable
- #icmp_type
- #icmp_type=

### Files

- .document
- README.rdoc

### Class/Module Index

Quicksearch

- PacketFu
- PacketFu::ARPHeader
- PacketFu::ARPHeaderMixin
- PacketFu::ARPPacket
- PacketFu::AddrIpv6
- PacketFu::Capture
- PacketFu::Config
- PacketFu::EthHeader
- PacketFu::EthHeaderMixin
- PacketFu::EthMac
- PacketFu::EthNic
- PacketFu::EthOui
- PacketFu::EthPacket
- PacketFu::HSRPHeader
- PacketFu::HSRPHeaderMixin
- PacketFu::HSRPPacket
- PacketFu::ICMPHeader
- PacketFu::ICMPHeaderMixin
- PacketFu::ICMPPacket
- PacketFu::IPHeader
- PacketFu::IPHeaderMixin
- PacketFu::IPPacket
- PacketFu::IPv6Header
- PacketFu::IPv6HeaderMixin
- PacketFu::IPv6Packet
- PacketFu::Inject
- PacketFu::InvalidHeader
- PacketFu::InvalidPacket
- PacketFu::LLDPHeader
- PacketFu::LLDPHeaderMixin
- PacketFu::LLDPPacket
- PacketFu::Octets
- PacketFu::Packet
- PacketFu::PcapFile
- PacketFu::PcapHeader
- PacketFu::PcapPacket
- PacketFu::PcapPackets
- PacketFu::Read
- PacketFu::TCPHeader
- PacketFu::TCPHeaderMixin
- PacketFu::TCPPacket
- PacketFu::TcpEcn
- PacketFu::TcpFlags
- PacketFu::TcpHlen
- PacketFu::TcpOption
- PacketFu::TcpOption::ECHO
- PacketFu::TcpOption::ECHOREPLY
- PacketFu::TcpOption::EOL
- PacketFu::TcpOption::MSS
- PacketFu::TcpOption::NOP
- PacketFu::TcpOption::SACK
- PacketFu::TcpOption::SACKOK
- PacketFu::TcpOption::TS
- PacketFu::TcpOption::WS
- PacketFu::TcpOptions
- PacketFu::TcpReserved
- PacketFu::Timestamp
- PacketFu::UDPHeader
- PacketFu::UDPHeaderMixin
- PacketFu::UDPPacket
- PacketFu::Utils
- PacketFu::Write
- StructFu
- StructFu::Int
- StructFu::Int16
- StructFu::Int16be
- StructFu::Int16le
- StructFu::Int32
- StructFu::Int32be
- StructFu::Int32le
- StructFu::Int8
- StructFu::IntString
- StructFu::String
- Struct

No matching classes.

# PacketFu::ICMPHeaderMixin

This Mixin simplifies access to the ICMPHeaders. Mix this in with your packet interface, and it will add methods that essentially delegate to the 'icmp_header' method (assuming that it is a ICMPHeader object)

### Public Instance Methods

icmp_calc_sum() click to toggle source

    # File lib/packetfu/protos/icmp/mixin.rb, line 12
    def icmp_calc_sum; self.icmp_header.icmp_calc_sum; end

icmp_code() click to toggle source

    # File lib/packetfu/protos/icmp/mixin.rb, line 9
    def icmp_code; self.icmp_header.icmp_code; end

icmp_code=(v) click to toggle source

    # File lib/packetfu/protos/icmp/mixin.rb, line 8
    def icmp_code=(v); self.icmp_header.icmp_code= v; end

icmp_recalc(*v) click to toggle source

    # File lib/packetfu/protos/icmp/mixin.rb, line 13
    def icmp_recalc(*v); self.icmp_header.icmp_recalc(*v); end

icmp_sum() click to toggle source

    # File lib/packetfu/protos/icmp/mixin.rb, line 11
    def icmp_sum; self.icmp_header.icmp_sum; end

icmp_sum=(v) click to toggle source

    # File lib/packetfu/protos/icmp/mixin.rb, line 10
    def icmp_sum=(v); self.icmp_header.icmp_sum= v; end

icmp_sum_readable() click to toggle source

    # File lib/packetfu/protos/icmp/mixin.rb, line 14
    def icmp_sum_readable; self.icmp_header.icmp_sum_readable; end

icmp_type() click to toggle source

    # File lib/packetfu/protos/icmp/mixin.rb, line 7
    def icmp_type; self.icmp_header.icmp_type; end

icmp_type=(v) click to toggle source

    # File lib/packetfu/protos/icmp/mixin.rb, line 6
    def icmp_type=(v); self.icmp_header.icmp_type= v; end

[Validate]

Generated with the Darkfish Rdoc Generator 2.