Fixed up parsing of illegal IP addresses, and added self tests.
Fixed up parsing of illegal IP addresses, and added self tests.


bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs