mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2026-10-16 20:51:00 +08:00
b2b8edc0dd
Shared upstream attribution could assign CERNET prefixes to China Telecom or Unicom even when CERNET originated the route. Stop at the closest configured operator in each prefix/origin's common AS-path suffix, while preserving downstream coverage and multi-origin observations. Correct overlapping CNGI/legacy ASN name matches, include operator boundaries in the cache key, and wire the policy into list generation. Accumulate common suffixes instead of retaining every observed path. Add synthetic MRT and dual-stack regressions, fixed ASN matching checks, and document the resulting list semantics. Validation: 26 Rust tests and Ruby operator checks pass. Frozen-input full generation preserves china and the seven-operator address union. All 41 sample classifications agree with the RIB paths; a fresh-cache rerun after the internal simplification produces 28 byte-identical artifacts. Refs #64