aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-09-07 22:39:56 +0200
committerHarald Welte <laforge@gnumonks.org>2015-09-07 22:39:56 +0200
commitcfcc1e67ad4c107d39e79d2eee5c8db8a1db7817 (patch)
treec287e8fd35bfc857b46a0f468a27efb2e814b0a4 /src
parent3f71256750e7213eebf6282d67e31c0ef82d16e2 (diff)
use htonl(ppid) when sending a SCTP message
Diffstat (limited to 'src')
-rw-r--r--src/hnbgw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hnbgw.c b/src/hnbgw.c
index 2db0afb..0839e69 100644
--- a/src/hnbgw.c
+++ b/src/hnbgw.c
@@ -85,7 +85,7 @@ static int hnb_write_cb(struct osmo_fd *fd, struct msgb *msg)
{
struct hnb_context *ctx = fd->data;
struct sctp_sndrcvinfo sinfo = {
- .sinfo_ppid = msgb_ppid(msg),
+ .sinfo_ppid = htonl(msgb_ppid(msg)),
.sinfo_stream = ctx->hnbap_stream,
};
int rc;