<p>George Joseph <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/13222">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lib/python/asterisk/pcap/py Replace construct_legacy.protocols<br><br>The "protocols" module provides parsing for PCAP packets<br>layers 2-4 (Ethernet, IPv4/IPv6, UDP/TCP). The<br>Testsuite uses it to parse packets for the tests that<br>need that functionality.<br><br>It was originally part of the "construct" module but was removed<br>after v2.5.5. Unfortunately, it was and is the only<br>standalone/low overhead packet parsing module available.<br><br>This python package is an extract from the construct package v2.5.5.<br>Since construct itself underwent major API changes since v2.5.5,<br>the protocols code needed significant work to make it compatible<br>with the current construct version (2.9 at the time of this writing).<br>Since no functional changes were made, only API compatibility<br>changes, the original construct (license)[LICENSE.md] still<br>applies and is included here.<br><br>* Ported construct.protocols to construct 2.9 and added it<br> to lib/python.<br><br>* Updated pcap.py...<br>** Using /lib/python/PcapListener directly instead of through<br> test_case to make it a bit less complicated and to facilitate<br> standalone unit tests.<br>** Refactored for construct 2.9<br>** Removed references to construct.protcols<br>** Added a unit test.<br> cd <testsuite_dir>/lib/python/asterisk<br> PYTHONPATH=<testsuite_dir>/lib/python python2 pcap.py --help<br><br>* Updated tests that used construct_legacy to work with<br> construct 2.9<br><br>Change-Id: Id38d01a2cd073b240fde909a38c95d69313bbbe7<br>---<br>M lib/python/asterisk/pcap.py<br>M lib/python/asterisk/test_case.py<br>A lib/python/protocols/LICENSE.md<br>A lib/python/protocols/README.md<br>A lib/python/protocols/__init__.py<br>A lib/python/protocols/application/__init__.py<br>A lib/python/protocols/ipstack.py<br>A lib/python/protocols/layer2/__init__.py<br>A lib/python/protocols/layer2/arp.py<br>A lib/python/protocols/layer2/ethernet.py<br>A lib/python/protocols/layer2/mtp2.py<br>A lib/python/protocols/layer3/__init__.py<br>A lib/python/protocols/layer3/ipv4.py<br>A lib/python/protocols/layer3/ipv6.py<br>A lib/python/protocols/layer4/__init__.py<br>A lib/python/protocols/layer4/tcp.py<br>A lib/python/protocols/layer4/udp.py<br>A lib/python/protocols/unconverted/application/dns.py<br>A lib/python/protocols/unconverted/layer3/dhcpv4.py<br>A lib/python/protocols/unconverted/layer3/dhcpv6.py<br>A lib/python/protocols/unconverted/layer3/icmpv4.py<br>A lib/python/protocols/unconverted/layer3/igmpv2.py<br>A lib/python/protocols/unconverted/layer3/mtp3.py<br>A lib/python/protocols/unconverted/layer4/isup.py<br>M tests/channels/SIP/pcap_demo/run-test<br>M tests/channels/SIP/pcap_demo/test-config.yaml<br>M tests/channels/pjsip/rtp/rtp_keepalive/base/rtp.py<br>M tests/hep/hep_capture_node.py<br>28 files changed, 1,354 insertions(+), 144 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/22/13222/3</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/13222">change 13222</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/testsuite/+/13222"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: Id38d01a2cd073b240fde909a38c95d69313bbbe7 </div>
<div style="display:none"> Gerrit-Change-Number: 13222 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>