libosmo-netif/src
Harald Welte a659590e29 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
2017-04-10 17:48:42 +02:00
..
channel Fix the compilation on FreeBSD. 2015-02-25 15:52:14 +01:00
Makefile.am SCTP support for osmo_stream_{cli,srv} code 2015-12-21 20:54:19 +01:00
amr.c amr: use AMR_FT_MAX instead of hardcoded number 2013-12-14 22:41:03 +01:00
channel.c channel: add subtype ID to osmo_chan_create 2012-08-19 00:52:00 +02:00
datagram.c stream/datagram: Ensure reliable close/destroy 2017-04-10 06:52:59 +00:00
ipa.c ipa: fix compilation warning 2012-10-15 23:09:36 +02:00
ipa_unit.c ipa_unit: use talloc_strdup 2013-08-25 14:24:46 +02:00
osmux.c doc: Add Doxygen group for OSMUX related functions 2017-04-08 20:13:14 +02:00
rs232.c rs232.c: Fix license to GPLv2-or-later. libosmo-netif is GPLv2-or-later 2016-12-22 14:19:32 +00:00
rtp.c endian: Use the new endian macros for portability 2015-03-22 09:38:36 +01:00
stream.c stream.c: Fix endianness handling of PPID and STREAM_ID 2017-04-10 17:48:42 +02:00