[PATCH openggsn v2] gtp: fix endianness in teid field of GTPv0 header

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Sun Mar 23 19:52:37 UTC 2014


On Fri, Mar 21, 2014 at 12:08:49PM +0100, pablo at gnumonks.org wrote:
> From: Pablo Neira Ayuso <pablo at gnumonks.org>
> 
> This field needs to be in network byte order as well. This problem
> may manifest if you use ggsn and sgsn with different endianness.
> It also show up when using the gtp kernel mode since the downlink
> packets are using network byte order in the 64-bits teid field,
> which osmo-sgsn / libgtp doesn't expect.
> ---
> v2: Add function to encapsulate the code to access and to build
>     the teid as Holger suggested.

looks good.





More information about the OpenBSC mailing list