socket-util: Factor inet_parse_passive() out of inet_open_passive().