add validation tests for ipv4
Merge pull request #114 from sk2/validate

add validation tests for ipv4