struct Sniffer::EtherHeader

Defined in:

sniffer/eth_header.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 ether_dhost : StaticArray(UInt8, 6) #

[View source]
def ether_shost : StaticArray(UInt8, 6) #

[View source]
def ether_type : UInt16 #

[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]