[PATCH 3/4] fwd, pif: Remove duplicated logic between tcp_listen() and udp_listen()