Re: [PATCH]: PPP_FILTER outbound only drops with debugging enables

From: Paul Mackerras (paulus@samba.org)
Date: Fri Jan 17 2003 - 17:20:38 EST


Dave,

This patch looks obviously correct, please send it on to Linus.

Paul.

Patrick McHardy writes:
> Hi.
>
> Packets in ppp_send_frame catched by pass_filter are only dropped if
> debuging is enabled:

[snip]

--- linux-2.4.20/drivers/net/ppp_generic.c.orig 2003-01-17 13:15:32.000000000 +0100
+++ linux-2.4.20/drivers/net/ppp_generic.c 2003-01-17 13:16:23.000000000 +0100
@@ -965,11 +965,10 @@
                 if (ppp->pass_filter.filter
                     && sk_run_filter(skb, ppp->pass_filter.filter,
                                      ppp->pass_filter.len) == 0) {
- if (ppp->debug & 1) {
+ if (ppp->debug & 1)
                                 printk(KERN_DEBUG "PPP: outbound frame not passed\n");
- kfree_skb(skb);
- return;
- }
+ kfree_skb(skb);
+ return;
                 }
                 /* if this packet passes the active filter, record the time */
                 if (!(ppp->active_filter.filter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jan 23 2003 - 22:00:17 EST