Agent: Add TODO about using Python's ipaddress library

This commit is contained in:
Mike Salvatore 2022-07-27 10:41:05 -04:00
parent 6377ff4c66
commit 85211c3120
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ SIOCGIFNETMASK = 0x891B # get network PA mask
RTF_UP = 0x0001 # Route usable
RTF_REJECT = 0x0200
# TODO: We can probably replace both of these namedtuples with classes in Python's ipaddress
# library: https://docs.python.org/3/library/ipaddress.html
NetworkInterface = namedtuple("NetworkInterface", ("address", "netmask"))
NetworkAddress = namedtuple("NetworkAddress", ("ip", "domain"))