From 59d16fcfe6b32c36fdbe64c594234fa96473dc70 Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Mon, 22 Jun 2009 17:56:04 +0200 Subject: added Harald's code for pcap output --- src/lib/decoder/Makefile.am | 7 ++++++- src/lib/decoder/gsmstack.c | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src/lib/decoder') 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)); -- cgit v1.2.3