commit | cfcc1e67ad4c107d39e79d2eee5c8db8a1db7817 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Mon Sep 07 22:39:56 2015 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Mon Sep 07 22:39:56 2015 +0200 |
tree | c287e8fd35bfc857b46a0f468a27efb2e814b0a4 | |
parent | 3f71256750e7213eebf6282d67e31c0ef82d16e2 [diff] |
use htonl(ppid) when sending a SCTP message
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 @@ { 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;