dahdi_pcap: Fix LAPD pseudo header hardware address length

the 'halen' field is the length of the hardware address (8 bytes),
and not the length of the payload.

Change-Id: I72e009f40c8e9e295bc1e1f4a0951cd1236cdf43
This commit is contained in:
Harald Welte 2022-02-21 20:38:08 +01:00
parent 68395096f0
commit 89b6df7593
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ int log_packet(struct chan_fds * fd, char is_read, pcap_dumper_t * dump)
lapd->sll_pkttype = 3;
lapd->sll_hatype = 0;
lapd->sll_halen = res;
lapd->sll_halen = htons(8);
// lapd->sll_addr = ???
lapd->sll_protocol[0] = 0x00;
lapd->sll_protocol[1] = 0x30;