added lwip_sock_stat()