Class: Pio::IPv4Header
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Pio::IPv4Header
- Includes:
- IPv4, InstanceInspector, RubyDumper
- Defined in:
- lib/pio/ipv4_header.rb
Overview
IPv4 header generator/parser
Class Method Summary collapse
-
.inspect ⇒ Object
rubocop:disable LineLength.
Methods included from RubyDumper
Methods included from InstanceInspector
Methods included from IPv4
included, #ip_header_length_in_bytes, #to_exact_match
Methods included from Payload
Class Method Details
.inspect ⇒ Object
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 |