1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-07 17:57:03 +02:00
Files
jc/tests/fixtures/generic/traceroute2-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

261 lines
4.9 KiB
JSON

[
{
"type": "header",
"destination_ip": "216.58.194.46",
"destination_name": "google.com",
"max_hops": 30,
"data_bytes": 40
},
{
"type": "hop",
"hop": 1,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "216.230.231.141",
"name": "216-230-231-141.static.houston.tx.oplink.net",
"rtt": 198.574
},
{
"annotation": null,
"asn": null,
"ip": "216.230.231.141",
"name": "216-230-231-141.static.houston.tx.oplink.net",
"rtt": 198.65
}
]
},
{
"type": "hop",
"hop": 2,
"probes": []
},
{
"type": "hop",
"hop": 3,
"probes": []
},
{
"type": "hop",
"hop": 4,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "72.14.242.34",
"name": "72.14.242.34",
"rtt": 4.932
},
{
"annotation": null,
"asn": null,
"ip": "72.14.242.34",
"name": "72.14.242.34",
"rtt": 4.945
},
{
"annotation": null,
"asn": null,
"ip": "72.14.242.34",
"name": "72.14.242.34",
"rtt": 4.951
}
]
},
{
"type": "hop",
"hop": 5,
"probes": []
},
{
"type": "hop",
"hop": 6,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "108.170.230.116",
"name": "108.170.230.116",
"rtt": 4.687
},
{
"annotation": null,
"asn": null,
"ip": "108.170.230.116",
"name": "108.170.230.116",
"rtt": 4.798
},
{
"annotation": null,
"asn": null,
"ip": "108.170.230.116",
"name": "108.170.230.116",
"rtt": 4.688
}
]
},
{
"type": "hop",
"hop": 7,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "108.170.252.130",
"name": "108.170.252.130",
"rtt": 4.825
},
{
"annotation": null,
"asn": null,
"ip": "108.170.252.130",
"name": "108.170.252.130",
"rtt": 4.844
},
{
"annotation": null,
"asn": null,
"ip": "108.170.252.130",
"name": "108.170.252.130",
"rtt": 4.797
}
]
},
{
"type": "hop",
"hop": 8,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "108.170.233.117",
"name": "108.170.233.117",
"rtt": 5.386
},
{
"annotation": null,
"asn": null,
"ip": "108.170.233.117",
"name": "108.170.233.117",
"rtt": 5.288
},
{
"annotation": null,
"asn": null,
"ip": "108.170.233.117",
"name": "108.170.233.117",
"rtt": 5.324
}
]
},
{
"type": "hop",
"hop": 9,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "216.239.63.250",
"name": "216.239.63.250",
"rtt": 5.305
},
{
"annotation": null,
"asn": null,
"ip": "216.239.63.250",
"name": "216.239.63.250",
"rtt": 5.369
},
{
"annotation": null,
"asn": null,
"ip": "216.239.63.250",
"name": "216.239.63.250",
"rtt": 5.406
}
]
},
{
"type": "hop",
"hop": 10,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "108.170.240.129",
"name": "108.170.240.129",
"rtt": 6.005
},
{
"annotation": null,
"asn": null,
"ip": "108.170.240.129",
"name": "108.170.240.129",
"rtt": 5.93
},
{
"annotation": null,
"asn": null,
"ip": "108.170.240.129",
"name": "108.170.240.129",
"rtt": 5.983
}
]
},
{
"type": "hop",
"hop": 11,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "209.85.242.53",
"name": "209.85.242.53",
"rtt": 4.973
},
{
"annotation": null,
"asn": null,
"ip": "209.85.242.53",
"name": "209.85.242.53",
"rtt": 4.973
},
{
"annotation": null,
"asn": null,
"ip": "209.85.242.53",
"name": "209.85.242.53",
"rtt": 4.979
}
]
},
{
"type": "hop",
"hop": 12,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "216.58.194.46",
"name": "dfw25s12-in-f46.1e100.net",
"rtt": 4.871
},
{
"annotation": null,
"asn": null,
"ip": "216.58.194.46",
"name": "dfw25s12-in-f46.1e100.net",
"rtt": 4.884
},
{
"annotation": null,
"asn": null,
"ip": "216.58.194.46",
"name": "dfw25s12-in-f46.1e100.net",
"rtt": 4.863
}
]
}
]