Functions

  • std::string GetOuiPrefix (const std::string & mac)

    Returns a sub-string view of the first three bytes of |mac|, including the delimiters

    that follow each byte.

    This function assumes |mac| is a proper representation of a MAC address. Undefined

    behavior will result if passed any other string.

    Defined at line 303 of file ../../src/developer/forensics/utils/redact/replacer.cc

  • std::string CanonicalizeMac (const std::string & original_mac)

    Constructs a MAC address equivalent to |mac| but in the canonical form with

    exactly two digits per bytes and colons as delimiters.

    This function assumes |mac| is a proper representation of a MAC address. Undefined

    behavior will result if passed any other string.

    Defined at line 310 of file ../../src/developer/forensics/utils/redact/replacer.cc