LLC: fix parsing of AL-FINAL

This commit is contained in:
Harald Welte 2011-04-24 12:04:51 +02:00
parent 2840dc5f07
commit 194bf12a0a
1 changed files with 1 additions and 2 deletions

View File

@ -122,8 +122,7 @@ int tetra_llc_pdu_parse(struct tetra_llc_pdu *lpp, uint8_t *buf, int len)
if (*cur++) {
/* FINAL */
cur++;
cur += 2;
lpp->ns = bits_to_uint(cur, 5); cur += 5;
lpp->ns = bits_to_uint(cur, 3); cur += 3;
lpp->ss = bits_to_uint(cur, 8); cur += 8;
if (*cur++) {
/* FIXME: FCS */