Commit 2566f6c2 authored by Patrick McHardy's avatar Patrick McHardy Committed by Sridhar Samudrala

[PPP]: Handle filtering drops correctly.

parent 0f70407a
...@@ -962,12 +962,11 @@ ppp_send_frame(struct ppp *ppp, struct sk_buff *skb) ...@@ -962,12 +962,11 @@ ppp_send_frame(struct ppp *ppp, struct sk_buff *skb)
if (ppp->pass_filter.filter if (ppp->pass_filter.filter
&& sk_run_filter(skb, ppp->pass_filter.filter, && sk_run_filter(skb, ppp->pass_filter.filter,
ppp->pass_filter.len) == 0) { ppp->pass_filter.len) == 0) {
if (ppp->debug & 1) { if (ppp->debug & 1)
printk(KERN_DEBUG "PPP: outbound frame not passed\n"); printk(KERN_DEBUG "PPP: outbound frame not passed\n");
kfree_skb(skb); kfree_skb(skb);
return; return;
} }
}
/* if this packet passes the active filter, record the time */ /* if this packet passes the active filter, record the time */
if (!(ppp->active_filter.filter if (!(ppp->active_filter.filter
&& sk_run_filter(skb, ppp->active_filter.filter, && sk_run_filter(skb, ppp->active_filter.filter,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment