Contents

Udp

Scenario: parse dhcp.pcap

  • When I parse a file named "dhcp.pcap" with "Pio::Udp" class
  • Then the message #1 have the following fields and values:
    fieldvalue
    classPio::Udp
    destination_macff:ff:ff:ff:ff:ff
    source_mac00:0b:82:01:fc:42
    ether_type.to_hex0x800
    ip_version4
    ip_header_length5
    ip_type_of_service0
    ip_total_length300
    ip_identifier43062
    ip_flag0
    ip_fragment0
    ip_ttl250
    ip_protocol17
    ip_header_checksum6027
    source_ip_address0.0.0.0
    destination_ip_address255.255.255.255
    ip_option
    udp_source_port68
    udp_destination_port67
    udp_length280
    udp_checksum22815
    udp_payload.length272

Source: features/udp.feature at commit 40dd0fb6, Pio (GPL license).