- convert_network_four_tuple(family, four_tuple)¶
Converts the connection four_tuple: (source ip, source port, dest ip, dest port)
into their string equivalents. IP addresses are expected as a tuple of unsigned shorts Ports are converted to proper endianness as well
- round(addr, align, up=False)¶
Round an address up or down based on an alignment.