Validating ip address

06-Oct-2016 18:59

While working on this and digging around the web I ran across some stuff that I think is worth sharing.

It would be easy to add, just pass a %V from the -vcmd option & add extra arg to func then do primarily the same checks except force the length to be exactly 4 and don't do the trick of letting the last one blank.As the “robustness principle” dictates this validation script will identify addresses with zero folded single 16-bit 0 fields as valid but tools producing addresses should not.