import re


def is_ipv4(ip):
    """Checks if the ip address is a valid ipv4 address including CIDR mask."""

    regex = r'^(\d+)[.](\d+)[.](\d+)[.](\d+)[/](\d+)$'
    pattern = re.compile(regex)
    return pattern.search(ip) is not None