From 38b426ac4e4e63b302784d53d1191f91292714ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=BCxen?= <tuexen@fh-muenster.de> Date: Sat, 19 Sep 2015 21:50:57 +0200 Subject: [PATCH] Update sctp_packet.c The PPID is a 32-bit entity, not a 16-bit. --- gtests/net/packetdrill/sctp_packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtests/net/packetdrill/sctp_packet.c b/gtests/net/packetdrill/sctp_packet.c index 40b44dba..ac26f208 100644 --- a/gtests/net/packetdrill/sctp_packet.c +++ b/gtests/net/packetdrill/sctp_packet.c @@ -421,10 +421,10 @@ sctp_data_chunk_new(s64 flgs, s64 len, s64 tsn, s64 sid, s64 ssn, s64 ppid) chunk->ssn = htons((u16)ssn); } if (ppid == -1) { - chunk->ppid = htons(0); + chunk->ppid = htonl(0); flags |= FLAG_DATA_CHUNK_PPID_NOCHECK; } else { - chunk->ppid = htons((u32)ppid); + chunk->ppid = htonl((u32)ppid); } memset(chunk->data, 0, length + padding_length - sizeof(struct sctp_data_chunk)); -- GitLab