Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scapy/layers/inet6.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def getmacbyip6(ip6, chainCC=0):
class Net6(Gen): # syntax ex. fec0::/126
"""Generate a list of IPv6s from a network address or a name"""
name = "ipv6"
ipaddress = re.compile(r"^([a-fA-F0-9:]+)(/[1]?[0-3]?[0-9])?$")
ipaddress = re.compile(r"^([a-fA-F0-9:]+)(/([1]?[0-3]?[0-9]|[0-9]?[0-9]))?$")

def __init__(self, net):
self.repr = net
Expand Down