Module goatns::utils

source ·

Functions

  • Compares the TLD to the list of valid TLDs - usually from allowed_tlds in crate::config::ConfigFile
  • turn a degrees/minutes/seconds format into unsigned 32-bit integer matching the format required for a DNS LOC record
  • If you have a name and a target and want to see if you can find a chunk of the target that the name ends with, this is your function!
  • dumps the bytes out as if you were using some kind of fancy packet-dumper
  • converts size/precision X * 10**Y(cm) to 0xXY This code is ported from the C code in RFC1876 (Appendix A, precsize_aton)
  • does the conversion from “example.com” to “7example3com” BUT DOES NOT DO THE TRAILING NULL BECAUSE REASONS
  • Get all the widgets for agent signalling