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
33585c7e
Commit
33585c7e
authored
Jul 14, 2003
by
Sridhar Samudrala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCTP] Update API names to be compatible with draft-ietf-tsvwg-sctpsocket-07.txt.
parent
78398488
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
179 additions
and
247 deletions
+179
-247
include/net/sctp/user.h
include/net/sctp/user.h
+121
-177
net/sctp/associola.c
net/sctp/associola.c
+2
-2
net/sctp/socket.c
net/sctp/socket.c
+50
-62
net/sctp/ulpevent.c
net/sctp/ulpevent.c
+6
-6
No files found.
include/net/sctp/user.h
View file @
33585c7e
This diff is collapsed.
Click to expand it.
net/sctp/associola.c
View file @
33585c7e
...
@@ -556,12 +556,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
...
@@ -556,12 +556,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
switch
(
command
)
{
switch
(
command
)
{
case
SCTP_TRANSPORT_UP
:
case
SCTP_TRANSPORT_UP
:
transport
->
active
=
SCTP_ACTIVE
;
transport
->
active
=
SCTP_ACTIVE
;
spc_state
=
ADDRESS_AVAIL
ABLE
;
spc_state
=
SCTP_ADDR_REACH
ABLE
;
break
;
break
;
case
SCTP_TRANSPORT_DOWN
:
case
SCTP_TRANSPORT_DOWN
:
transport
->
active
=
SCTP_INACTIVE
;
transport
->
active
=
SCTP_INACTIVE
;
spc_state
=
ADDRESS
_UNREACHABLE
;
spc_state
=
SCTP_ADDR
_UNREACHABLE
;
break
;
break
;
default:
default:
...
...
net/sctp/socket.c
View file @
33585c7e
This diff is collapsed.
Click to expand it.
net/sctp/ulpevent.c
View file @
33585c7e
...
@@ -727,7 +727,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi(
...
@@ -727,7 +727,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi(
const
struct
sctp_association
*
asoc
,
__u32
indication
,
int
gfp
)
const
struct
sctp_association
*
asoc
,
__u32
indication
,
int
gfp
)
{
{
struct
sctp_ulpevent
*
event
;
struct
sctp_ulpevent
*
event
;
struct
sctp_
rcv_
pdapi_event
*
pd
;
struct
sctp_pdapi_event
*
pd
;
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
event
=
sctp_ulpevent_new
(
sizeof
(
struct
sctp_assoc_change
),
event
=
sctp_ulpevent_new
(
sizeof
(
struct
sctp_assoc_change
),
...
@@ -736,8 +736,8 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi(
...
@@ -736,8 +736,8 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi(
goto
fail
;
goto
fail
;
skb
=
sctp_event2skb
(
event
);
skb
=
sctp_event2skb
(
event
);
pd
=
(
struct
sctp_
rcv_
pdapi_event
*
)
pd
=
(
struct
sctp_pdapi_event
*
)
skb_put
(
skb
,
sizeof
(
struct
sctp_
rcv_
pdapi_event
));
skb_put
(
skb
,
sizeof
(
struct
sctp_pdapi_event
));
/* pdapi_type
/* pdapi_type
* It should be SCTP_PARTIAL_DELIVERY_EVENT
* It should be SCTP_PARTIAL_DELIVERY_EVENT
...
@@ -752,9 +752,9 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi(
...
@@ -752,9 +752,9 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi(
*
*
* This field is the total length of the notification data, including
* This field is the total length of the notification data, including
* the notification header. It will generally be sizeof (struct
* the notification header. It will generally be sizeof (struct
* sctp_
rcv_
pdapi_event).
* sctp_pdapi_event).
*/
*/
pd
->
pdapi_length
=
sizeof
(
struct
sctp_
rcv_
pdapi_event
);
pd
->
pdapi_length
=
sizeof
(
struct
sctp_pdapi_event
);
/* pdapi_indication: 32 bits (unsigned integer)
/* pdapi_indication: 32 bits (unsigned integer)
*
*
...
@@ -784,7 +784,7 @@ __u16 sctp_ulpevent_get_notification_type(const struct sctp_ulpevent *event)
...
@@ -784,7 +784,7 @@ __u16 sctp_ulpevent_get_notification_type(const struct sctp_ulpevent *event)
skb
=
sctp_event2skb
((
struct
sctp_ulpevent
*
)
event
);
skb
=
sctp_event2skb
((
struct
sctp_ulpevent
*
)
event
);
notification
=
(
union
sctp_notification
*
)
skb
->
data
;
notification
=
(
union
sctp_notification
*
)
skb
->
data
;
return
notification
->
h
.
sn_type
;
return
notification
->
sn_header
.
sn_type
;
}
}
/* Copy out the sndrcvinfo into a msghdr. */
/* Copy out the sndrcvinfo into a msghdr. */
...
...
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