Tools to Work with Media Access Control ('MAC') Addresses
A media access control address (MAC address) of a device is a unique identifier assigned to a network interface controller (NIC) for communications at the data link layer of a network segment. MAC addresses are used as a network address for most IEEE 802 network technologies, including Ethernet and Wi-Fi. In this context, MAC addresses are used in the medium access control protocol sublayer. Tools are provided to work with these 'MAC' addresses.
Ref: https://github.com/hdm/mac-ages
The following functions are implemented:
as_raw_mac
: Convert a charactrer vector of MAC addresses to a 'list' of 'raw' vectors.canonicalize_mac
: Converts a character vector of MAC addresses into canonical formis_canonical_mac
: Test if MAC address strings are in canonical formmac_match_age
: Lookup ages of MAC addressesmac_match_registry
: Lookup registry metadata of MAC addressesmac_to_binary_string
: Convert MAC address character vector to a binary string representationrebuild_search_tries
: Rebuild in-memory search triesupdate_mac_age_db
: Update MAC Address Age Databaseupdate_registry_data
: Update registry dataThe following datasets are included:
mac_age_db
: MAC Age Databasemac_registry_data
: MAC Registry Datadevtools::install_github("hrbrmstr/MACtools")
options(width=120)
library(MACtools) library(tidyverse) # current verison packageVersion("MACtools")
c( "2e:ab:a4:38:20:69", "70:26:5:19:23:25", "b8:e8:56:35:36:4", "f4:f5:d8:df:67:44", "44:d9:e7:7a:9e:25", "f4:f5:d8:a7:94:66", "a4:77:33:f2:50:30", "0:3e:e1:c3:9d:7a", "f0:23:b9:eb:42:4", "c8:69:cd:28:5a:7d", "d4:85:64:74:49:de", "3c:7:54:52:fe:11" ) -> macs mac_match_age(macs) mac_match_registry(macs) is_canonical_mac(macs) canonicalize_mac(macs) as_raw_mac(canonicalize_mac(macs))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.