fixtures/icmp/icmp_request.rb

Summary

Maintainability
A
1 hr
Test Coverage
# frozen_string_literal: true

[
  0x11, 0x22, 0x33, 0x44, 0x55, 0x66, # destination_mac
  0x66, 0x55, 0x44, 0x33, 0x22, 0x11, # source_mac
  0x08, 0x00, # ether_type
  0b0100_0101, # ip_version, ip_header_length
  0x00, # ip_type_of_service
  0x00, 0x36, # ip_total_length
  0x00, 0x00, # ip_identifier
  0b000_0000000000000, # ip_flag, ip_fragment
  0x80, # ip_ttl
  0x01, # ip_protocol
  0x12, 0x75, # ip_header_checksum
  0xc0, 0xa8, 0x53, 0x03, # source_ip_address
  0xc0, 0xa8, 0x53, 0xfe, # destination_ip_address
  0x08, # icmp_type
  0x00, # icmp_code
  0x67, 0xf5, # icmp_checksum
  0x01, 0x00, # icmp_identifier
  0x00, 0x6f, # icmp_sequence_number
  0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, # echo_data
].pack('C20nC46')