Skip to main content

parse_isi_row

Function parse_isi_row 

Source
fn parse_isi_row(line: &str) -> Option<Vec<Address>>
Expand description

Parse one USC/ISI ANT hitlist row into ranked candidate addresses. The block length selects the IP version: 8 hex digits is an IPv4 /24, 12 hex digits is an IPv6 /48.

IPv4 example: 01000400 01,04,09 -> 1.0.4.1, 1.0.4.4, 1.0.4.9 IPv6 example: 20010db81234 1,2a3f -> 2001:db8:1234::1, 2001:db8:1234::2a3f - marks a prefix with no known-responsive addresses