modified print_sockaddr_ex to get status