[PATCH] initial commit for libosmo-gtp

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/.

Harald Welte laforge at gnumonks.org
Sun Oct 18 08:23:50 UTC 2015


Hi Neels,

On Sat, Oct 17, 2015 at 10:52:07PM +0200, Neels Hofmeyr wrote:
> [... TLVs]
> > Well, that's how we generaly deal with TLVs in libosmocore based
> > programs :)
> 
> About that: I see that values are referenced from the struct tlv_parsed.
> That's mighty fast. But GTP does have duplicate IEs: more than one LV
> with the same T. I need to loop tlv_parse_one() myself then, right? :/

Indeed.  At least for those messages where that might happen. I don't
really see a clean way to handle that, other than having a function
where the caller hands in multiple struct tlv_parsed (or an array of
them), which is equally ugly.

-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)



More information about the OpenBSC mailing list