better ipv4 validation

bug# 1205333

Change-Id: I2c23544cd7f94fbc0592252344def99dcee4b797
Merge "better ipv4 validation"