1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-24 20:56:11 +02:00
Files
jc/tests/fixtures/freebsd12/traceroute6-streaming.json
Shintaro Kojima 07ef285b06 Add traceroute streaming parser - traceroute-s (#669)
* test: split out test fixtures for long ipv6 traceroute for consistency

* refactor(jc/parsers/traceroute): remove duplicate ParseError class

* refactor(jc/parsers/traceroute): pre-process data in _loads() for easy-to-reuse

* refactor(jc/parsers/traceroute): split hop serialization into separate function to reuse

* refactor(jc/parsers/traceroute): simplify numeric conversion and make it reusable for traceroute_s

* fix(jc/parsers/traceroute): stricter regex to match traceroute headers only

* feat(jc/parsers/traceroute_s): v1.0 implementation

* fix(jc/parsers/traceroute): revert "_" prefix in function and class names

* fixup! fix(jc/parsers/traceroute): revert "_" prefix in function and class names

* chore(jc/parsers/traceroute): update the author information
2025-10-12 10:21:16 -07:00

209 lines
2.9 KiB
JSON

[
{
"type": "header",
"destination_ip": "2a04:4e42::323",
"destination_name": "turner-tls.map.fastly.net",
"max_hops": 64,
"data_bytes": 20
},
{
"type": "hop",
"hop": 1,
"probes": []
},
{
"type": "hop",
"hop": 2,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:506:6000:11b:71:156:212:143",
"name": null,
"rtt": 27.603
},
{
"annotation": null,
"asn": null,
"ip": "2001:506:6000:11b:71:156:212:143",
"name": null,
"rtt": 28.659
},
{
"annotation": null,
"asn": null,
"ip": "2001:506:6000:11b:71:156:212:143",
"name": null,
"rtt": 33.235
}
]
},
{
"type": "hop",
"hop": 3,
"probes": []
},
{
"type": "hop",
"hop": 4,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:1890:ff:ff08:12:242:117:16",
"name": null,
"rtt": 36.731
},
{
"annotation": null,
"asn": null,
"ip": "2001:1890:ff:ff08:12:242:117:16",
"name": null,
"rtt": 28.875
},
{
"annotation": null,
"asn": null,
"ip": "2001:1890:ff:ff08:12:242:117:16",
"name": null,
"rtt": 28.959
}
]
},
{
"type": "hop",
"hop": 5,
"probes": []
},
{
"type": "hop",
"hop": 6,
"probes": []
},
{
"type": "hop",
"hop": 7,
"probes": []
},
{
"type": "hop",
"hop": 8,
"probes": []
},
{
"type": "hop",
"hop": 9,
"probes": []
},
{
"type": "hop",
"hop": 10,
"probes": []
},
{
"type": "hop",
"hop": 11,
"probes": []
},
{
"type": "hop",
"hop": 12,
"probes": []
},
{
"type": "hop",
"hop": 13,
"probes": []
},
{
"type": "hop",
"hop": 14,
"probes": []
},
{
"type": "hop",
"hop": 15,
"probes": []
},
{
"type": "hop",
"hop": 16,
"probes": []
},
{
"type": "hop",
"hop": 17,
"probes": []
},
{
"type": "hop",
"hop": 18,
"probes": []
},
{
"type": "hop",
"hop": 19,
"probes": []
},
{
"type": "hop",
"hop": 20,
"probes": []
},
{
"type": "hop",
"hop": 21,
"probes": []
},
{
"type": "hop",
"hop": 22,
"probes": []
},
{
"type": "hop",
"hop": 23,
"probes": []
},
{
"type": "hop",
"hop": 24,
"probes": []
},
{
"type": "hop",
"hop": 25,
"probes": []
},
{
"type": "hop",
"hop": 26,
"probes": []
},
{
"type": "hop",
"hop": 27,
"probes": []
},
{
"type": "hop",
"hop": 28,
"probes": []
},
{
"type": "hop",
"hop": 29,
"probes": []
},
{
"type": "hop",
"hop": 30,
"probes": []
},
{
"type": "hop",
"hop": 31,
"probes": []
}
]