diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-04-10 17:48:42 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-10 17:48:42 +0200 |
commit | a659590e29412588bca2243b8329e82286244b00 (patch) | |
tree | 923ec56bc44b62744eef57fe367d2365beafad82 /debian | |
parent | 7cee4b67e90aeb260bde11ee7f299e507c94bc10 (diff) |
stream.c: Fix endianness handling of PPID and STREAM_ID
In their infinite wisdom, the inventors of SCTP designed an API (the
sockets API described in RFC6458), where some members are in host byte
order (like the stream identifier), while other members are in network
byte order (like the PPID).
Let's handle this properly (we assumed both are network byte order), and
also use 16-bit htons/ntohs fo the PPID, rather than htonl/ntohl.
Change-Id: I777174ca2915c6de0063db41a745c71b4a09bbec
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions