diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-05-23 06:39:58 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-05-23 06:39:58 +0000 |
commit | a4d49e96ab45b12fe581d6ab3cecd0727bccb317 (patch) | |
tree | dbeebd5e255e0ef1b07c1be083f8691027e46afa /src/abis_rsl.c | |
parent | e7b452a7a07b75f880fadeeb650efe2bac931c7b (diff) |
Some messages have one or two length-value information elements. The is
no IE type included in the message. These information elements are
mandatory, so their actual IE type is known. The improved parse_tlv()
function allows to parse zero, one, or two length-value elements.
(Andreas Eversberg)
Diffstat (limited to 'src/abis_rsl.c')
-rw-r--r-- | src/abis_rsl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/abis_rsl.c b/src/abis_rsl.c index e7f953e0c..753a66609 100644 --- a/src/abis_rsl.c +++ b/src/abis_rsl.c @@ -112,7 +112,8 @@ static const struct tlv_definition rsl_att_tlvdef = { [0xfc] = { TLV_TYPE_TV }, }, }; -#define rsl_tlv_parse(dec, buf, len) tlv_parse(dec, &rsl_att_tlvdef, buf, len) +#define rsl_tlv_parse(dec, buf, len) \ + tlv_parse(dec, &rsl_att_tlvdef, buf, len, 0, 0) static u_int8_t mdisc_by_msgtype(u_int8_t msg_type) { |