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..)
diff --git a/src/misdn.c b/src/misdn.c
index 3c9fc99..18f9152 100644
--- a/src/misdn.c
+++ b/src/misdn.c
@@ -212,7 +212,6 @@
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 @@
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;