{
  "schema_version": 1,
  "source_path": "docs/references/upstream/rpki-rs/src/rtr/pdu.rs",
  "source_commit": "56d3811d3ee44a7b93eab33e5b1853cbcd4dee70",
  "source_sha256": "a2bb4cc049f57292933f150ca516edd25593cbf91e13241cc2326e37ee0687af",
  "license_path": "docs/references/upstream/rpki-rs/LICENSE",
  "derivation": "Literal byte arrays extracted from upstream read_write_* tests. Expected fields are locally transcribed and checked against the cited protocol layouts.",
  "vectors": [
    {
      "id": "read_write_serial_notify",
      "hex": "01 00 12 34 00 00 00 0c de ad be ef",
      "expected_fields": {
        "version": 1,
        "pdu_type": 0,
        "length": 12,
        "session_id": 4660,
        "serial": 3735928559
      },
      "normative_reference": "RFC 8210 section 5.2",
      "source_function": "read_write_serial_notify",
      "source_line": 1812,
      "use": "PDU field decoding only; not a complete RTR transaction or ASPA path-validation test"
    },
    {
      "id": "read_write_serial_query",
      "hex": "01 01 12 34 00 00 00 0c de ad be ef",
      "expected_fields": {
        "version": 1,
        "pdu_type": 1,
        "length": 12,
        "session_id": 4660,
        "serial": 3735928559
      },
      "normative_reference": "RFC 8210 section 5.3",
      "source_function": "read_write_serial_query",
      "source_line": 1821,
      "use": "PDU field decoding only; not a complete RTR transaction or ASPA path-validation test"
    },
    {
      "id": "read_write_reset_query",
      "hex": "01 02 00 00 00 00 00 08",
      "expected_fields": {
        "version": 1,
        "pdu_type": 2,
        "length": 8
      },
      "normative_reference": "RFC 8210 section 5.4",
      "source_function": "read_write_reset_query",
      "source_line": 1830,
      "use": "PDU field decoding only; not a complete RTR transaction or ASPA path-validation test"
    },
    {
      "id": "read_write_cache_response",
      "hex": "01 03 12 34 00 00 00 08",
      "expected_fields": {
        "version": 1,
        "pdu_type": 3,
        "length": 8,
        "session_id": 4660
      },
      "normative_reference": "RFC 8210 section 5.5",
      "source_function": "read_write_cache_response",
      "source_line": 1839,
      "use": "PDU field decoding only; not a complete RTR transaction or ASPA path-validation test"
    },
    {
      "id": "read_write_end_of_data_v1",
      "hex": "01 07 12 34 00 00 00 18 de ad be ef 00 00 0e 10 00 00 02 58 00 00 1c 20",
      "expected_fields": {
        "version": 1,
        "pdu_type": 7,
        "length": 24,
        "session_id": 4660,
        "serial": 3735928559,
        "refresh_interval": 3600,
        "retry_interval": 600,
        "expire_interval": 7200
      },
      "normative_reference": "RFC 8210 section 5.8",
      "source_function": "read_write_end_of_data_v1",
      "source_line": 1976,
      "use": "PDU field decoding only; not a complete RTR transaction or ASPA path-validation test"
    },
    {
      "id": "read_write_cache_reset",
      "hex": "01 08 00 00 00 00 00 08",
      "expected_fields": {
        "version": 1,
        "pdu_type": 8,
        "length": 8
      },
      "normative_reference": "RFC 8210 section 5.9",
      "source_function": "read_write_cache_reset",
      "source_line": 2023,
      "use": "PDU field decoding only; not a complete RTR transaction or ASPA path-validation test"
    },
    {
      "id": "read_write_aspa",
      "hex": "02 0b 01 00 00 00 00 14 00 01 00 0f 00 01 00 0d 00 01 00 0e",
      "expected_fields": {
        "version": 2,
        "pdu_type": 11,
        "length": 20,
        "flags": 1,
        "customer_asn": 65551,
        "provider_asns": [
          65549,
          65550
        ]
      },
      "normative_reference": "draft-ietf-sidrops-8210bis-27 section 5.12",
      "source_function": "read_write_aspa",
      "source_line": 1914,
      "use": "PDU field decoding only; not a complete RTR transaction or ASPA path-validation test"
    }
  ]
}
