diff options
author | brian <brian@cvs.openbsd.org> | 1998-10-29 23:48:20 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-10-29 23:48:20 +0000 |
commit | d074cee4ed50571e69808c61a8b752b22019d222 (patch) | |
tree | 3d71a3a2337dd63530ae05f8d87f7b8b2f61a1d5 /usr.sbin | |
parent | 2b9096668985a1259fddc6f53b53a466a4388892 (diff) |
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 <gandalf@vilnya.demon.co.uk>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/ppp/bundle.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/ppp/ppp/bundle.c b/usr.sbin/ppp/ppp/bundle.c index ee15d50ec41..55b7bcbcae7 100644 --- a/usr.sbin/ppp/ppp/bundle.c +++ b/usr.sbin/ppp/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.3 1998/10/29 02:21:44 brian Exp $ + * $Id: bundle.c,v 1.4 1998/10/29 23:48:19 brian Exp $ */ #include <sys/param.h> @@ -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); |