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..)
This commit is contained in:
Holger Freyther 2009-01-02 01:18:28 +00:00
parent 2139b246a0
commit 52af7d4284
1 changed files with 1 additions and 1 deletions

View File

@ -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;