Commit 13059e30 authored by Faidon Liambotis's avatar Faidon Liambotis Committed by Faidon Liambotis

mac2eui64: exit on an invalid IPv6 prefix

parent df3e8fac
......@@ -13,6 +13,7 @@ try:
prefix = IP(sys.argv[2])
except ValueError:
sys.stderr.write("Invalid IPv6 prefix '%s'\n" % sys.argv[2])
sys.exit(1)
if prefix.version() != 6:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment