working on new ip-lookup sample in C