Sha256: 094dce9c21773f506a2084114cc778f2ae549636b0969a82aec5adecbbd476f0

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

Feature: 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:
      | field                  |             value |
      | class                  |          Pio::Udp |
      | destination_mac        | ff:ff:ff:ff:ff:ff |
      | source_mac             | 00:0b:82:01:fc:42 |
      | ether_type.to_hex      |             0x800 |
      | ip_version             |                 4 |
      | ip_header_length       |                 5 |
      | ip_type_of_service     |                 0 |
      | ip_total_length        |               300 |
      | ip_identifier          |             43062 |
      | ip_flag                |                 0 |
      | ip_fragment            |                 0 |
      | ip_ttl                 |               250 |
      | ip_protocol            |                17 |
      | ip_header_checksum     |              6027 |
      | source_ip_address      |           0.0.0.0 |
      | destination_ip_address |   255.255.255.255 |
      | ip_option              |                   |
      | udp_source_port        |                68 |
      | udp_destination_port   |                67 |
      | udp_length             |               280 |
      | udp_checksum           |             22815 |
      | udp_payload.length     |               272 |

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pio-0.30.2 features/udp.feature
pio-0.30.1 features/udp.feature