Add IP addresses manipulation API to lua.