upper mac: print MLE PDU type

This commit is contained in:
Harald Welte 2011-04-24 09:24:13 +02:00
parent ec02a9f038
commit ba1ec17db6
3 changed files with 41 additions and 2 deletions

View file

@ -33,6 +33,7 @@
#include "tetra_mm_pdu.h"
#include "tetra_cmce_pdu.h"
#include "tetra_sndcp_pdu.h"
#include "tetra_mle_pdu.h"
#include "tetra_gsmtap.h"
static void rx_bcast(struct tetra_tmvsap_prim *tmvp)
@ -99,6 +100,9 @@ static int rx_tm_sdu(uint8_t *bits, unsigned int len)
case TMLE_PDISC_SNDCP:
printf(" %s", tetra_get_sndcp_pdut_name(bits_to_uint(bits+3, 4), 0));
break;
case TMLE_PDISC_MLE:
printf(" %s", tetra_get_mle_pdut_name(bits_to_uint(bits+3, 3), 0));
break;
default:
break;
}