Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 416 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 416 Bytes

ip_handlers

Functions for dealing with IPs programmatically.

first_last_ipv4(block)

Returns the network and broadcast addresses of a subnet as a tuple.

all_addr_in_subnet(block)

Returns a list of all IPs in a subnet.

in_subnet(addr, subnet)

Returns a boolean if an IP is within a subnet.

subnet_in_supernet(subnet, supernet)

Returns a boolean if a subnet is within a supernet.