[asterisk-bugs] [JIRA] (DAHTOOL-93) dahdi_pcap bug encoding the pkttype / direction
Harald Welte (JIRA)
noreply at issues.asterisk.org
Mon Feb 21 15:23:07 CST 2022
Harald Welte created DAHTOOL-93:
-----------------------------------
Summary: dahdi_pcap bug encoding the pkttype / direction
Key: DAHTOOL-93
URL: https://issues.asterisk.org/jira/browse/DAHTOOL-93
Project: DAHDI-Tools
Issue Type: Bug
Security Level: None
Components: Utilities
Affects Versions: 3.1.0
Reporter: Harald Welte
Assignee: Duncan Patterson
The pkttype field is in big-endian byte-order, the code was missing a htons().
Furthermore, a static value of '3' is wrong as the value depends on the direction (rx/tx).
See the fix at https://github.com/asterisk/dahdi-tools/pull/4/commits/283443a32f66f82deeb0e1d17849219f181938a9 - part of my PR 4 on github.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list