Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
71a82136
Commit
71a82136
authored
Jul 20, 2003
by
Chas Williams
Committed by
David S. Miller
Jul 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: If !IFF_UP drop the frames.
parent
1008a7fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
net/atm/lec.c
net/atm/lec.c
+3
-2
No files found.
net/atm/lec.c
View file @
71a82136
...
@@ -692,10 +692,11 @@ lec_push(struct atm_vcc *vcc, struct sk_buff *skb)
...
@@ -692,10 +692,11 @@ lec_push(struct atm_vcc *vcc, struct sk_buff *skb)
atm_return
(
vcc
,
skb
->
truesize
);
atm_return
(
vcc
,
skb
->
truesize
);
if
(
*
(
uint16_t
*
)
skb
->
data
==
htons
(
priv
->
lecid
)
||
if
(
*
(
uint16_t
*
)
skb
->
data
==
htons
(
priv
->
lecid
)
||
!
priv
->
lecd
)
{
!
priv
->
lecd
||
!
(
dev
->
flags
&
IFF_UP
))
{
/* Probably looping back, or if lecd is missing,
/* Probably looping back, or if lecd is missing,
lecd has gone down */
lecd has gone down */
DPRINTK
(
"Ignoring
loopback
frame...
\n
"
);
DPRINTK
(
"Ignoring frame...
\n
"
);
dev_kfree_skb
(
skb
);
dev_kfree_skb
(
skb
);
return
;
return
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment