Class: Pio::IPv4Header

Inherits:
BinData::Record show all
Includes:
IPv4, InstanceInspector, RubyDumper
Defined in:
lib/pio/ipv4_header.rb

Overview

IPv4 header generator/parser

Class Method Summary collapse

Methods included from RubyDumper

#to_ruby

Methods included from InstanceInspector

#inspect

Methods included from IPv4

included, #ip_header_length_in_bytes, #to_exact_match

Methods included from Payload

#binary_after

Class Method Details

.inspectObject

rubocop:disable LineLength



104
105
106
# File 'lib/pio/ipv4_header.rb', line 104

def self.inspect
  'IPv4Header(ip_version: bit4, ip_header_length: bit4, ip_type_of_service: uint8, ip_total_length: uint16, ip_identifier: uint16, ip_flag: bit3, ip_fragment: bit13, ip_ttl: uint8, ip_protocol: uint8, ip_header_checksum: uint16, source_ip_address: ip_address, destination_ip_address: ip_address, ip_option: string)'
end