diff options
author | brian <brian@FreeBSD.org> | 2000-03-29 09:31:52 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-03-29 09:31:52 +0000 |
commit | a12619f86801d28316676a19a0267008ccb8ceff (patch) | |
tree | 6fe044d24586b27ba85aa43d05899aec2978e76a /usr.sbin/ppp/nat_cmd.c | |
parent | 657714f28b4882b431d947e9e54ff90261a40375 (diff) | |
download | FreeBSD-src-a12619f86801d28316676a19a0267008ccb8ceff.zip FreeBSD-src-a12619f86801d28316676a19a0267008ccb8ceff.tar.gz |
Log information about packets being dropped (probably due to
``nat deny_incoming yes'') by libalias.
Diffstat (limited to 'usr.sbin/ppp/nat_cmd.c')
-rw-r--r-- | usr.sbin/ppp/nat_cmd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c index eb5fa64..999a31a 100644 --- a/usr.sbin/ppp/nat_cmd.c +++ b/usr.sbin/ppp/nat_cmd.c @@ -50,6 +50,7 @@ #ifndef NORADIUS #include "radius.h" #endif +#include "ip.h" #include "bundle.h" @@ -423,6 +424,15 @@ nat_LayerPull(struct bundle *bundle, struct link *l, struct mbuf *bp, nfrags, gfrags); break; + case PKT_ALIAS_IGNORED: + if (log_IsKept(LogTCPIP)) { + log_Printf(LogTCPIP, "NAT engine ignored data:\n"); + PacketCheck(bundle, (char *)pip, ntohs(pip->ip_len), NULL); + } + m_freem(bp); + bp = NULL; + break; + default: log_Printf(LogWARN, "nat_LayerPull: Dropped a packet (%d)....\n", ret); m_freem(bp); |