mirror of
https://github.com/brmlab/osmo-tetra.git
synced 2025-12-17 13:14:01 +01:00
fixed warnings from compiler findings
- added missing header definition for tun_alloc - added missing switch cases -> fixed by TODO/FIXME comment
This commit is contained in:
parent
42dead06be
commit
dafde94bfe
5 changed files with 36 additions and 2 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include <osmocom/core/bits.h>
|
||||
|
||||
#include "tetra_llc_pdu.h"
|
||||
#include "tuntap.h"
|
||||
|
||||
static int tun_fd = -1;
|
||||
|
||||
|
|
@ -78,7 +79,7 @@ static int tllc_defrag_in(struct tllc_state *llcs,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int tllc_defrag_out(struct tllc_state *llcs,
|
||||
static void tllc_defrag_out(struct tllc_state *llcs,
|
||||
struct tetra_llc_pdu *lpp)
|
||||
{
|
||||
struct tllc_defrag_q_e *dqe;
|
||||
|
|
@ -147,6 +148,18 @@ int rx_tm_sdu(struct msgb *msg, unsigned int len)
|
|||
/* check if the fragment is complete and hand it off*/
|
||||
tllc_defrag_out(&g_llcs, &lpp);
|
||||
break;
|
||||
case TLLC_PDUT_DEC_UNKNOWN:
|
||||
// TODO: currently not handled!
|
||||
// FIXME
|
||||
break;
|
||||
case TLLC_PDUT_DEC_ALX_ACK:
|
||||
// TODO: currently not handled!
|
||||
// FIXME
|
||||
break;
|
||||
case TLLC_PDUT_DEC_ALX_RNR:
|
||||
// TODO: currently not handled!
|
||||
// FIXME
|
||||
break;
|
||||
}
|
||||
|
||||
if (lpp.tl_sdu && lpp.ss == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue