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
5075a03d
Commit
5075a03d
authored
Oct 20, 2004
by
Chas Williams
Committed by
David S. Miller
Oct 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: use RCV_SHUTDOWN to exit skb_recv_datagram()
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
a5bdb72d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
net/atm/common.c
net/atm/common.c
+2
-0
net/atm/signaling.c
net/atm/signaling.c
+2
-6
No files found.
net/atm/common.c
View file @
5075a03d
...
...
@@ -178,6 +178,7 @@ static void vcc_destroy_socket(struct sock *sk)
struct
atm_vcc
*
vcc
=
atm_sk
(
sk
);
struct
sk_buff
*
skb
;
set_bit
(
ATM_VF_CLOSE
,
&
vcc
->
flags
);
clear_bit
(
ATM_VF_READY
,
&
vcc
->
flags
);
if
(
vcc
->
dev
)
{
if
(
vcc
->
dev
->
ops
->
close
)
...
...
@@ -216,6 +217,7 @@ int vcc_release(struct socket *sock)
void
vcc_release_async
(
struct
atm_vcc
*
vcc
,
int
reply
)
{
set_bit
(
ATM_VF_CLOSE
,
&
vcc
->
flags
);
vcc
->
sk
->
sk_shutdown
|=
RCV_SHUTDOWN
;
vcc
->
sk
->
sk_err
=
-
reply
;
clear_bit
(
ATM_VF_WAITING
,
&
vcc
->
flags
);
vcc
->
sk
->
sk_state_change
(
vcc
->
sk
);
...
...
net/atm/signaling.c
View file @
5075a03d
...
...
@@ -147,9 +147,7 @@ static int sigd_send(struct atm_vcc *vcc,struct sk_buff *skb)
return
0
;
case
as_close
:
set_bit
(
ATM_VF_RELEASED
,
&
vcc
->
flags
);
clear_bit
(
ATM_VF_READY
,
&
vcc
->
flags
);
vcc
->
sk
->
sk_err
=
-
msg
->
reply
;
clear_bit
(
ATM_VF_WAITING
,
&
vcc
->
flags
);
vcc_release_async
(
vcc
,
msg
->
reply
);
break
;
case
as_modify
:
modify_qos
(
vcc
,
msg
);
...
...
@@ -205,9 +203,7 @@ static void purge_vcc(struct atm_vcc *vcc)
if
(
vcc
->
sk
->
sk_family
==
PF_ATMSVC
&&
!
test_bit
(
ATM_VF_META
,
&
vcc
->
flags
))
{
set_bit
(
ATM_VF_RELEASED
,
&
vcc
->
flags
);
vcc
->
sk
->
sk_err
=
EUNATCH
;
clear_bit
(
ATM_VF_WAITING
,
&
vcc
->
flags
);
vcc
->
sk
->
sk_state_change
(
vcc
->
sk
);
vcc_release_async
(
vcc
,
-
EUNATCH
);
}
}
...
...
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