add library code for doing ip lookups on named interfaces