Index: pipex.c =================================================================== RCS file: /cvs/src/sys/net/pipex.c,v retrieving revision 1.113 diff -u -p -r1.113 pipex.c --- pipex.c 7 Apr 2020 07:11:22 -0000 1.113 +++ pipex.c 21 May 2020 21:49:50 -0000 @@ -1453,10 +1453,7 @@ pipex_pptp_output(struct mbuf *m0, struc gre->flags = htons(gre->flags); m0->m_pkthdr.ph_ifidx = session->pipex_iface->ifnet_this->if_index; - if (ip_output(m0, NULL, NULL, 0, NULL, NULL, 0) != 0) { - PIPEX_DBG((session, LOG_DEBUG, "ip_output failed.")); - goto drop; - } + ip_send(m0); if (len > 0) { /* network layer only */ /* countup statistics */ session->stat.opackets++; @@ -1901,11 +1898,7 @@ pipex_l2tp_output(struct mbuf *m0, struc ip->ip_tos = 0; ip->ip_off = 0; - if (ip_output(m0, NULL, NULL, 0, NULL, NULL, - session->proto.l2tp.ipsecflowinfo) != 0) { - PIPEX_DBG((session, LOG_DEBUG, "ip_output failed.")); - goto drop; - } + ip_send(m0); break; #ifdef INET6 case AF_INET6: @@ -1920,10 +1913,7 @@ pipex_l2tp_output(struct mbuf *m0, struc &session->peer.sin6, NULL); /* ip6->ip6_plen will be filled in ip6_output. */ - if (ip6_output(m0, NULL, NULL, 0, NULL, NULL) != 0) { - PIPEX_DBG((session, LOG_DEBUG, "ip6_output failed.")); - goto drop; - } + ip6_send(m0); break; #endif }