Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dist/pf/net pfil4_wrapper: clear M_CANFASTFWD which is n...
details: https://anonhg.NetBSD.org/src/rev/a6069dace8fe
branches: trunk
changeset: 572379:a6069dace8fe
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Jan 01 09:13:14 2005 +0000
description:
pfil4_wrapper: clear M_CANFASTFWD which is not compatible with pf.
diffstat:
sys/dist/pf/net/pf_ioctl.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 532bcd6f03eb -r a6069dace8fe sys/dist/pf/net/pf_ioctl.c
--- a/sys/dist/pf/net/pf_ioctl.c Sat Jan 01 07:00:50 2005 +0000
+++ b/sys/dist/pf/net/pf_ioctl.c Sat Jan 01 09:13:14 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pf_ioctl.c,v 1.13 2004/12/04 14:26:01 peter Exp $ */
+/* $NetBSD: pf_ioctl.c,v 1.14 2005/01/01 09:13:14 yamt Exp $ */
/* $OpenBSD: pf_ioctl.c,v 1.130 2004/09/09 22:08:42 dhartmei Exp $ */
/*
@@ -2945,8 +2945,17 @@
m_freem(*mp);
*mp = NULL;
return EHOSTUNREACH;
- } else
- return (0);
+ }
+
+ /*
+ * we're not compatible with fast-forward.
+ */
+
+ if (dir == PFIL_IN) {
+ (*mp)->m_flags &= ~M_CANFASTFWD;
+ }
+
+ return (0);
}
#ifdef INET6
Home |
Main Index |
Thread Index |
Old Index