From 84cac80f1940f6df5f9e735a042fff954dd8059d Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 29 Oct 1998 23:47:10 +0000 Subject: [PATCH] Don't call PacketAliasIn() when we turn around packets destined for our interface address. We're about to call ip_Input() anyway, and ip_Input() does the PacketAliasIn(). Stack trace provided by: Cameron Grant --- usr.sbin/ppp/bundle.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 4f111343466..b8d49fd9060 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bundle.c,v 1.38 1998/10/26 19:07:38 brian Exp $ + * $Id: bundle.c,v 1.39 1998/10/27 22:53:22 brian Exp $ */ #include @@ -625,12 +625,6 @@ bundle_DescriptorRead(struct descriptor *d, struct bundle *bundle, if (pri >= 0) { struct mbuf *bp; -#ifndef NOALIAS - if (bundle->AliasEnabled) { - PacketAliasIn(tun.data, sizeof tun.data); - n = ntohs(((struct ip *)tun.data)->ip_len); - } -#endif bp = mbuf_Alloc(n, MB_IPIN); memcpy(MBUF_CTOP(bp), tun.data, n); ip_Input(bundle, bp);