endieness bug, fast correction but not last
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6299 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -81,7 +81,7 @@ typedef struct sctp_cnx_list_elm_s {
|
|||||||
uint16_t in_streams; ///< Number of input streams negociated for this connection
|
uint16_t in_streams; ///< Number of input streams negociated for this connection
|
||||||
uint16_t out_streams; ///< Number of output streams negotiated for this connection
|
uint16_t out_streams; ///< Number of output streams negotiated for this connection
|
||||||
uint16_t ppid; ///< Payload protocol Identifier
|
uint16_t ppid; ///< Payload protocol Identifier
|
||||||
int32_t assoc_id; ///< SCTP association id for the connection
|
int32_t assoc_id; ///< SCTP association id for the connection (note4debug host byte order)
|
||||||
uint32_t messages_recv; ///< Number of messages received on this connection
|
uint32_t messages_recv; ///< Number of messages received on this connection
|
||||||
uint32_t messages_sent; ///< Number of messages sent on this connection
|
uint32_t messages_sent; ///< Number of messages sent on this connection
|
||||||
task_id_t task_id; ///< Task id of the task who asked for this connection
|
task_id_t task_id; ///< Task id of the task who asked for this connection
|
||||||
@@ -705,12 +705,13 @@ inline void sctp_eNB_read_from_socket(struct sctp_cnx_list_elm_s *sctp_cnx)
|
|||||||
} else {
|
} else {
|
||||||
sctp_cnx->messages_recv++;
|
sctp_cnx->messages_recv++;
|
||||||
|
|
||||||
if (sinfo.sinfo_ppid != sctp_cnx->ppid) {
|
if (ntohl(sinfo.sinfo_ppid) != sctp_cnx->ppid) {
|
||||||
/* Mismatch in Payload Protocol Identifier,
|
/* Mismatch in Payload Protocol Identifier,
|
||||||
* may be we received unsollicited traffic from stack other than S1AP.
|
* may be we received unsollicited traffic from stack other than S1AP.
|
||||||
*/
|
*/
|
||||||
SCTP_ERROR("Received data from peer with unsollicited PPID %d, expecting %d\n",
|
SCTP_ERROR("Received data from peer with unsollicited PPID %d, expecting %d\n",
|
||||||
sinfo.sinfo_ppid, sctp_cnx->ppid);
|
ntohl(sinfo.sinfo_ppid),
|
||||||
|
sctp_cnx->ppid);
|
||||||
}
|
}
|
||||||
|
|
||||||
SCTP_DEBUG("[%d][%d] Msg of length %d received from port %u, on stream %d, PPID %d\n",
|
SCTP_DEBUG("[%d][%d] Msg of length %d received from port %u, on stream %d, PPID %d\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user