From 89b6df7593a48bed44af48d8ecc01730cdf03432 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 21 Feb 2022 20:38:08 +0100 Subject: [PATCH] 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 --- dahdi_pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dahdi_pcap.c b/dahdi_pcap.c index f6fa7fe..225fe78 100644 --- a/dahdi_pcap.c +++ b/dahdi_pcap.c @@ -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;