Rename lookup_ok to string_lookup_ok in the test helper lib
Shut up compiler warning
Don't assume struct only contains one member
Replace int with bool for is_ipv4 variable