def get_ipv4_range(numeric_netaddr, prefix_len):
    """
    Return the smallest and biggest possible IPv4 address of the specified
    network address (in numeric representation) and prefix length.
    """
    mask_inverted = 32 - prefix_len
    mask_bin = 0xffffffff >> mask_inverted << mask_inverted
    range_start = numeric_netaddr & mask_bin
    range_end = range_start | (1 << mask_inverted) - 1
    return range_start, range_end