Skip to content
Snippets Groups Projects
Commit 38b426ac authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Update sctp_packet.c

The PPID is a 32-bit entity, not a 16-bit.
parent b96154da
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment