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