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
9ae3df72
Commit
9ae3df72
authored
Oct 21, 2004
by
Sridhar Samudrala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCTP] Change sctp_assoc_t to a sized type(s32).
Signed-off-by:
Sridhar Samudrala
<
sri@us.ibm.com
>
parent
31a37910
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
include/net/sctp/sctp.h
include/net/sctp/sctp.h
+1
-1
include/net/sctp/user.h
include/net/sctp/user.h
+1
-1
net/sctp/associola.c
net/sctp/associola.c
+3
-3
net/sctp/socket.c
net/sctp/socket.c
+1
-1
No files found.
include/net/sctp/sctp.h
View file @
9ae3df72
...
...
@@ -335,7 +335,7 @@ static inline void sctp_v6_exit(void) { return; }
/* Map an association to an assoc_id. */
static
inline
sctp_assoc_t
sctp_assoc2id
(
const
struct
sctp_association
*
asoc
)
{
return
(
asoc
?
asoc
->
assoc_id
:
NULL
);
return
(
asoc
?
asoc
->
assoc_id
:
0
);
}
/* Look up the association by its id. */
...
...
include/net/sctp/user.h
View file @
9ae3df72
...
...
@@ -55,7 +55,7 @@
#include <linux/types.h>
#include <linux/socket.h>
typedef
void
*
sctp_assoc_t
;
typedef
__s32
sctp_assoc_t
;
/* The following symbols come from the Sockets API Extensions for
* SCTP <draft-ietf-tsvwg-sctpsocket-07.txt>.
...
...
net/sctp/associola.c
View file @
9ae3df72
...
...
@@ -271,7 +271,7 @@ struct sctp_association *sctp_association_init(struct sctp_association *asoc,
asoc
->
need_ecne
=
0
;
asoc
->
assoc_id
=
(
sctp_assoc_t
)
-
1L
;
asoc
->
assoc_id
=
0
;
/* Assume that peer would support both address types unless we are
* told otherwise.
...
...
@@ -374,9 +374,9 @@ static void sctp_association_destroy(struct sctp_association *asoc)
sctp_endpoint_put
(
asoc
->
ep
);
sock_put
(
asoc
->
base
.
sk
);
if
(
(
long
)
asoc
->
assoc_id
!=
-
1L
)
{
if
(
asoc
->
assoc_id
!=
0
)
{
spin_lock_bh
(
&
sctp_assocs_id_lock
);
idr_remove
(
&
sctp_assocs_id
,
(
long
)
asoc
->
assoc_id
);
idr_remove
(
&
sctp_assocs_id
,
asoc
->
assoc_id
);
spin_unlock_bh
(
&
sctp_assocs_id_lock
);
}
...
...
net/sctp/socket.c
View file @
9ae3df72
...
...
@@ -1063,7 +1063,7 @@ SCTP_STATIC int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
struct
sctp_sndrcvinfo
default_sinfo
=
{
0
};
struct
sctp_sndrcvinfo
*
sinfo
;
struct
sctp_initmsg
*
sinit
;
sctp_assoc_t
associd
=
NULL
;
sctp_assoc_t
associd
=
0
;
sctp_cmsgs_t
cmsgs
=
{
NULL
};
int
err
;
sctp_scope_t
scope
;
...
...
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