laforge has uploaded this change for review.

View Change

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
---
M dahdi_pcap.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/dahdi-tools refs/changes/74/27274/1
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 @@

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;

To view, visit change 27274. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: dahdi-tools
Gerrit-Branch: master
Gerrit-Change-Id: I72e009f40c8e9e295bc1e1f4a0951cd1236cdf43
Gerrit-Change-Number: 27274
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-MessageType: newchange