OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96cd0d3
)
sctp: correctly save sctp_adaptation from parameter.
author
Vlad Yasevich
<vladislav.yasevich@hp.com>
Mon, 15 Sep 2008 20:29:49 +0000
(16:29 -0400)
committer
Vlad Yasevich
<vladislav.yasevich@hp.com>
Wed, 1 Oct 2008 15:34:16 +0000
(11:34 -0400)
The INIT perameter carries the adapatation value in network-byte
order. We need to store it in host byte order as expected
by data types and the user API.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/sm_make_chunk.c
patch
|
blob
|
history
diff --git
a/net/sctp/sm_make_chunk.c
b/net/sctp/sm_make_chunk.c
index
99fe074
..
76726bc
100644
(file)
--- a/
net/sctp/sm_make_chunk.c
+++ b/
net/sctp/sm_make_chunk.c
@@
-2467,7
+2467,7
@@
do_addr_param:
break;
case SCTP_PARAM_ADAPTATION_LAYER_IND:
- asoc->peer.adaptation_ind =
param.aind->adaptation_ind
;
+ asoc->peer.adaptation_ind =
ntohl(param.aind->adaptation_ind)
;
break;
case SCTP_PARAM_SET_PRIMARY: