diff options
-rw-r--r-- | include/net/sctp/command.h | 2 | ||||
-rw-r--r-- | net/sctp/sm_sideeffect.c | 2 | ||||
-rw-r--r-- | net/sctp/sm_statefuns.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/include/net/sctp/command.h b/include/net/sctp/command.h index dfe5d44b61ab..6114c4f54b0a 100644 --- a/include/net/sctp/command.h +++ b/include/net/sctp/command.h | |||
@@ -116,6 +116,7 @@ typedef enum { | |||
116 | typedef union { | 116 | typedef union { |
117 | __s32 i32; | 117 | __s32 i32; |
118 | __u32 u32; | 118 | __u32 u32; |
119 | __be32 be32; | ||
119 | __u16 u16; | 120 | __u16 u16; |
120 | __u8 u8; | 121 | __u8 u8; |
121 | int error; | 122 | int error; |
@@ -165,6 +166,7 @@ SCTP_## name (type arg) \ | |||
165 | 166 | ||
166 | SCTP_ARG_CONSTRUCTOR(I32, __s32, i32) | 167 | SCTP_ARG_CONSTRUCTOR(I32, __s32, i32) |
167 | SCTP_ARG_CONSTRUCTOR(U32, __u32, u32) | 168 | SCTP_ARG_CONSTRUCTOR(U32, __u32, u32) |
169 | SCTP_ARG_CONSTRUCTOR(BE32, __be32, be32) | ||
168 | SCTP_ARG_CONSTRUCTOR(U16, __u16, u16) | 170 | SCTP_ARG_CONSTRUCTOR(U16, __u16, u16) |
169 | SCTP_ARG_CONSTRUCTOR(U8, __u8, u8) | 171 | SCTP_ARG_CONSTRUCTOR(U8, __u8, u8) |
170 | SCTP_ARG_CONSTRUCTOR(ERROR, int, error) | 172 | SCTP_ARG_CONSTRUCTOR(ERROR, int, error) |
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index c512ce491834..7bbc6156e455 100644 --- a/net/sctp/sm_sideeffect.c +++ b/net/sctp/sm_sideeffect.c | |||
@@ -1420,7 +1420,7 @@ static int sctp_cmd_interpreter(sctp_event_t event_type, | |||
1420 | 1420 | ||
1421 | case SCTP_CMD_PROCESS_CTSN: | 1421 | case SCTP_CMD_PROCESS_CTSN: |
1422 | /* Dummy up a SACK for processing. */ | 1422 | /* Dummy up a SACK for processing. */ |
1423 | sackh.cum_tsn_ack = cmd->obj.u32; | 1423 | sackh.cum_tsn_ack = cmd->obj.be32; |
1424 | sackh.a_rwnd = 0; | 1424 | sackh.a_rwnd = 0; |
1425 | sackh.num_gap_ack_blocks = 0; | 1425 | sackh.num_gap_ack_blocks = 0; |
1426 | sackh.num_dup_tsns = 0; | 1426 | sackh.num_dup_tsns = 0; |
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index b70e3258b6d3..c136d991da6d 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -2466,7 +2466,7 @@ sctp_disposition_t sctp_sf_do_9_2_shutdown(const struct sctp_endpoint *ep, | |||
2466 | * received by the SHUTDOWN sender. | 2466 | * received by the SHUTDOWN sender. |
2467 | */ | 2467 | */ |
2468 | sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_CTSN, | 2468 | sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_CTSN, |
2469 | SCTP_U32(chunk->subh.shutdown_hdr->cum_tsn_ack)); | 2469 | SCTP_BE32(chunk->subh.shutdown_hdr->cum_tsn_ack)); |
2470 | 2470 | ||
2471 | out: | 2471 | out: |
2472 | return disposition; | 2472 | return disposition; |