struct Sniffer::IPPacket

Defined in:

sniffer/ip_packet.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Sniffer::Header

initialize initialize, read_u16(io) read_u16, read_u32(io) read_u32, read_u64(io) read_u64, read_u8(io) read_u8

Constructor methods inherited from struct Sniffer::Header

new new

Constructor Detail

def self.new(io : IO) #

[View source]

Instance Method Detail

def addr2string(addr : UInt32) #

[View source]
def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def protocol : UInt8 #

[View source]
def protocol_string : String #

[View source]
def tot_len : UInt16 #

[View source]