changes to #23829, #23742, #23853, and implemented getservbyport and getservbyname