diff --git a/scapy/volatile.py b/scapy/volatile.py index f7dcfbc08..5d3e2adcb 100644 --- a/scapy/volatile.py +++ b/scapy/volatile.py @@ -291,6 +291,8 @@ class RandIP6(RandString): ip.append("%04x" % n) if len(ip) == 9: ip.remove("") + if ip[-1] == "": + ip[-1] = 0 return ":".join(ip) class RandOID(RandString):