aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-01-02 01:18:28 +0000
committerHolger Freyther <zecke@selfish.org>2009-01-02 01:18:28 +0000
commit52af7d428433847d631a3e6c0da8cddb94390e6d (patch)
tree20a46432ae805525a72efb5148db6c5be5a66284
parent2139b246a09fa6904fa51de48e471a7a146d440b (diff)
Write only actual data into the pcap file
The current LAPD control field for indication/disconnect/etc is wrong and currently we are only interested in the actual A-Bis data spoken between the BTS and BSC and not on the indication of the physical line (connection, disconnect, release..)
-rw-r--r--src/misdn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misdn.c b/src/misdn.c
index 3c9fc99f9..18f915281 100644
--- a/src/misdn.c
+++ b/src/misdn.c
@@ -212,7 +212,6 @@ static int handle_ts1_read(struct bsc_fd *bfd)
DEBUGP(DMI, "<= len = %d, prim(0x%x) id(0x%x)\n",
ret, hh->prim, hh->id);
- write_pcap_packet(PCAP_INPUT, &l2addr, msg);
switch (hh->prim) {
case DL_INFORMATION_IND:
@@ -263,6 +262,7 @@ static int handle_ts1_read(struct bsc_fd *bfd)
break;
case DL_DATA_IND:
DEBUGP(DMI, "got DL_DATA_IND\n");
+ write_pcap_packet(PCAP_INPUT, &l2addr, msg);
msg->l2h = msg->data + MISDN_HEADER_LEN;