use htonl(ppid) when sending a SCTP message
This commit is contained in:
parent
3f71256750
commit
cfcc1e67ad
|
@ -85,7 +85,7 @@ static int hnb_write_cb(struct osmo_fd *fd, struct msgb *msg)
|
||||||
{
|
{
|
||||||
struct hnb_context *ctx = fd->data;
|
struct hnb_context *ctx = fd->data;
|
||||||
struct sctp_sndrcvinfo sinfo = {
|
struct sctp_sndrcvinfo sinfo = {
|
||||||
.sinfo_ppid = msgb_ppid(msg),
|
.sinfo_ppid = htonl(msgb_ppid(msg)),
|
||||||
.sinfo_stream = ctx->hnbap_stream,
|
.sinfo_stream = ctx->hnbap_stream,
|
||||||
};
|
};
|
||||||
int rc;
|
int rc;
|
||||||
|
|
Loading…
Reference in New Issue