summaryrefslogtreecommitdiff
path: root/gsm-tvoid/src/lib/gsmstack.h
diff options
context:
space:
mode:
Diffstat (limited to 'gsm-tvoid/src/lib/gsmstack.h')
-rw-r--r--gsm-tvoid/src/lib/gsmstack.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/gsm-tvoid/src/lib/gsmstack.h b/gsm-tvoid/src/lib/gsmstack.h
index b4a5c96..a9da102 100644
--- a/gsm-tvoid/src/lib/gsmstack.h
+++ b/gsm-tvoid/src/lib/gsmstack.h
@@ -9,22 +9,28 @@ extern "C" {
#include <linux/if_ether.h>
#include "interleave.h"
+struct gs_ts_ctx {
+ /* FIXME: later do this per each ts per each arfcn */
+ unsigned char burst[4 * 58 * 2];
+ int burst_count;
+};
+
typedef struct
{
int flags;
int fn;
int bsic;
char msg[23]; /* last decoded message */
+
INTERLEAVE_CTX interleave_ctx;
- /* FIXME: later do this per each ts per each arfcn */
- unsigned char burst[4 * 58 * 2];
- int burst_count;
+ struct gs_ts_ctx ts_ctx[8];
int tun_fd;
unsigned char ether_addr[ETH_ALEN];
int pcap_fd;
+ int burst_pcap_fd;
} GS_CTX;
int GS_new(GS_CTX *ctx);
personal git repositories of Harald Welte. Your mileage may vary