summaryrefslogtreecommitdiff
path: root/src/lib/decoder
diff options
context:
space:
mode:
authorPiotr Krysik <perper@o2.pl>2009-06-22 17:56:04 +0200
committerPiotr Krysik <perper@o2.pl>2009-06-22 17:56:04 +0200
commit59d16fcfe6b32c36fdbe64c594234fa96473dc70 (patch)
treec4cd8b93fb0517ec3f03dbfcd66edfaea7880a14 /src/lib/decoder
parent99df35563a8135496bb9f4be0df43379e7f9e393 (diff)
added Harald's code for pcap output
Diffstat (limited to 'src/lib/decoder')
-rw-r--r--src/lib/decoder/Makefile.am7
-rw-r--r--src/lib/decoder/gsmstack.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/decoder/Makefile.am b/src/lib/decoder/Makefile.am
index 3a3e3f5..1ad7899 100644
--- a/src/lib/decoder/Makefile.am
+++ b/src/lib/decoder/Makefile.am
@@ -30,6 +30,8 @@ libdecoder_la_SOURCES = \
cch.c \
fire_crc.c \
gsmstack.c \
+ out_pcap.c \
+ tun.c \
interleave.c
noinst_HEADERS = \
@@ -38,6 +40,9 @@ noinst_HEADERS = \
fire_crc.h \
gsmstack.h \
interleave.h \
- system.h
+ system.h \
+ out_pcap.h \
+ tun.h \
+ gsmtap.h
# burst_types.h
diff --git a/src/lib/decoder/gsmstack.c b/src/lib/decoder/gsmstack.c
index a1f32d8..c3f1921 100644
--- a/src/lib/decoder/gsmstack.c
+++ b/src/lib/decoder/gsmstack.c
@@ -88,11 +88,11 @@ GS_new(GS_CTX *ctx)
if (ctx->tun_fd < 0)
fprintf(stderr, "cannot open 'gsm' tun device, did you create it?\n");
- ctx->pcap_fd = open_pcap_file("tvoid.pcap");
+ ctx->pcap_fd = open_pcap_file("gsm-receiver.pcap");
if (ctx->pcap_fd < 0)
fprintf(stderr, "cannot open PCAP file: %s\n", strerror(errno));
- ctx->burst_pcap_fd = open_pcap_file("tvoid-burst.pcap");
+ ctx->burst_pcap_fd = open_pcap_file("gsm-receiver-burst.pcap");
if (ctx->burst_pcap_fd < 0)
fprintf(stderr, "cannot open burst PCAP file: %s\n", strerror(errno));
personal git repositories of Harald Welte. Your mileage may vary