+ out.write_all(format!(
+ "Minimum protocol version: {} (\"v x\" to change value to x)\n", store.get_u64(U64Setting::MinProtocolVersion)
+ ).as_bytes()).expect("stdout broken?");
+ out.write_all(format!(
+ "Subversion match regex: {} (\"s x\" to change value to x)\n", store.get_regex(RegexSetting::SubverRegex).as_str()
+ ).as_bytes()).expect("stdout broken?");
+
+ out.write_all(b"\nRetry times (in seconds):\n").expect("stdout broken?");
+ for i in 0..AddressState::get_count() {
+ let scan_secs = store.get_u64(U64Setting::RescanInterval(AddressState::from_num(i).unwrap()));
+ out.write_all(format!(
+ "{:22} ({:2}): {:5} (ie {} hrs, {} min)\n", AddressState::from_num(i).unwrap().to_str(), i,
+ scan_secs, scan_secs / 60 / 60, (scan_secs / 60) % 60,
+ ).as_bytes()).expect("stdout broken?");
+ }
+
+ out.write_all(format!(
+ "\nBGP Routing Table: {} v4 paths, {} v6 paths\n",
+ stats.v4_table_size, stats.v6_table_size).as_bytes()).expect("stdout broken?");