aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/nat_cmd.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-05-12 09:49:12 +0000
committerBrian Somers <brian@FreeBSD.org>1999-05-12 09:49:12 +0000
commit6815097bf774651c1f6c3b4052fd7eb5ee9aaac0 (patch)
treebbd653cd40602a4f2cc3b7e22ebd81a7080adf72 /usr.sbin/ppp/nat_cmd.c
parent3c9bb8b7ffa78acb778356a9dc905dff822027f4 (diff)
downloadsrc-6815097bf774651c1f6c3b4052fd7eb5ee9aaac0.tar.gz
src-6815097bf774651c1f6c3b4052fd7eb5ee9aaac0.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/nat_cmd.c')
-rw-r--r--usr.sbin/ppp/nat_cmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c
index d35d49298c26..07180a62c1b7 100644
--- a/usr.sbin/ppp/nat_cmd.c
+++ b/usr.sbin/ppp/nat_cmd.c
@@ -2,7 +2,7 @@
* The code in this file was written by Eivind Eklund <perhaps@yes.no>,
* who places it in the public domain without restriction.
*
- * $Id: alias_cmd.c,v 1.23 1999/04/26 08:54:32 brian Exp $
+ * $Id: alias_cmd.c,v 1.24 1999/05/08 11:05:59 brian Exp $
*/
#include <sys/param.h>
@@ -328,7 +328,8 @@ alias_LayerPush(struct bundle *bundle, struct link *l, struct mbuf *bp,
{
if (!bundle->AliasEnabled || *proto != PROTO_IP)
return bp;
-
+
+ log_Printf(LogDEBUG, "alias_LayerPush: PROTO_IP -> PROTO_IP\n");
bp = mbuf_Contiguous(alias_PadMbuf(bp, MB_IPQ));
PacketAliasOut(MBUF_CTOP(bp), bp->cnt);
bp->cnt = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len);
@@ -348,6 +349,7 @@ alias_LayerPull(struct bundle *bundle, struct link *l, struct mbuf *bp,
if (!bundle->AliasEnabled || *proto != PROTO_IP)
return bp;
+ log_Printf(LogDEBUG, "alias_LayerPull: PROTO_IP -> PROTO_IP\n");
bp = mbuf_Contiguous(alias_PadMbuf(bp, MB_IPIN));
pip = (struct ip *)MBUF_CTOP(bp);
piip = (struct ip *)((char *)pip + (pip->ip_hl << 2));