diff options
author | 1998-10-29 23:48:19 +0000 | |
---|---|---|
committer | 1998-10-29 23:48:19 +0000 | |
commit | ff2da0a36b753e645deb04bcba289b81df9d0453 (patch) | |
tree | 0ab321f0835e70e8d1082bc03d04bd277a077955 | |
parent | hppa could be eisa too (diff) | |
download | wireguard-openbsd-ff2da0a36b753e645deb04bcba289b81df9d0453.tar.xz wireguard-openbsd-ff2da0a36b753e645deb04bcba289b81df9d0453.zip |
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>
-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); |