summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChas Williams <chas@cmf.nrl.navy.mil>2003-07-20 15:23:18 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-07-20 15:23:18 -0700
commit71a82136d4b0ed91188a1864b4125885454d2b8e (patch)
tree81e25bf2e06d7e037dcbacb005fc626f0abac8dc
parent1008a7fea3bfa4ad5483dedebcf8319e86be4abe (diff)
[ATM]: If !IFF_UP drop the frames.
-rw-r--r--net/atm/lec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c
index 3b9738d5c71f..cc075949cd30 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -692,10 +692,11 @@ lec_push(struct atm_vcc *vcc, struct sk_buff *skb)
atm_return(vcc,skb->truesize);
if (*(uint16_t *)skb->data == htons(priv->lecid) ||
- !priv->lecd) {
+ !priv->lecd ||
+ !(dev->flags & IFF_UP)) {
/* Probably looping back, or if lecd is missing,
lecd has gone down */
- DPRINTK("Ignoring loopback frame...\n");
+ DPRINTK("Ignoring frame...\n");
dev_kfree_skb(skb);
return;
}