diff options
author | Harald Welte <laforge@gnumonks.org> | 2008-11-29 13:48:12 +0530 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2008-11-29 13:48:12 +0530 |
commit | 51eaba28a3d4c83ecee4ca98544635d47c771380 (patch) | |
tree | 3a37b409011eebf1596d1561615699734d7dee6c /gsm-tvoid/src/lib/gsmstack.h | |
parent | fc65a393a6816b4f2fee25a299f0355e8667b0f4 (diff) |
[gsm-tvoid] new gsmtap header, raw burst pcap support
* split burst decoding context out of GS_ctx and have one for each TS
* add PCAP output for GSMTAP_TYPE_UM_BURST (142 bit burst per packet)
Diffstat (limited to 'gsm-tvoid/src/lib/gsmstack.h')
-rw-r--r-- | gsm-tvoid/src/lib/gsmstack.h | 12 |
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); |