class Pcap::IpHeader

Included Modules

Defined in:

pcap/ip_header.cr

Constructors

Instance Method Summary

Instance methods inherited from module Pcap::IpHeader::Optimized

dst_str dst_str, src_str src_str

Constructor Detail

def self.new(raw : LibPcap::IpHeader) #

[View source]

Instance Method Detail

def dst #

[View source]
def inspect(io : IO) #
Description copied from class Reference

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>

[View source]
def ip_dst : UInt32 #

[View source]
def ip_frag : UInt16 #

[View source]
def ip_hl #

[View source]
def ip_id : UInt16 #

[View source]
def ip_len : UInt16 #

[View source]
def ip_proto #

[View source]
def ip_src : UInt32 #

[View source]
def ip_sum : UInt16 #

[View source]
def ip_tos #

[View source]
def ip_ttl #

[View source]
def ip_v #

[View source]
def ip_vhl #

[View source]
def src #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]