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>
This commit is contained in:
Brian Somers 1998-10-29 23:47:10 +00:00
parent ebed2088fe
commit 84cac80f19
1 changed files with 1 additions and 7 deletions

View File

@ -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 <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);