Skip to content

scapy_mqttsn: import MQTT-SN layer for scapy#11822

Closed
miri64 wants to merge 5 commits intoRIOT-OS:masterfrom
miri64:pythonlibs/feat/scapy-mqttsn
Closed

scapy_mqttsn: import MQTT-SN layer for scapy#11822
miri64 wants to merge 5 commits intoRIOT-OS:masterfrom
miri64:pythonlibs/feat/scapy-mqttsn

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Jul 9, 2019

Contribution description

I provided this also upstream but it might take a while until there is a version of that one can install with pip etc (not to mention until the CI builders are sufficiently updated...). So for now I'd like to include this into our repo to provide some tests for our two MQTT-SN libraries, emcute and asymcute.

Testing procedure

Clone my contribution to scapy:

cd ../
git clone --branch mqttsn_layer https://github.com/miri64/scapy

Make sure the python file to this repo is identical to the python file I contributed to scapy

diff -u scapy/scapy/contrib/mqttsn.py RIOT/dist/pythonlibs/scapy_mqttsn.py

(the output should be empty)

Run the tests I provided to scapy for python 3 with scapy test suite:

cd scapy
./test/run_tests_py3 -P "load_contrib('mqttsn')" -t test/contrib/mqttsn.uts

Issues/PRs references

None, but might help later on with #11811

I provided a this also upstream [1] but it might take a while until
there is a version of that one can install with `pip` etc. So for now
I'd like to include this into our repo to provide some tests for our
two MQTT-SN libraries, `emcute` and `asymcute`.

[1]: secdev/scapy#2131
@miri64 miri64 added Area: network Area: Networking Area: tests Area: tests and testing framework Type: new feature The issue requests / The PR implemements a new feature for RIOT CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: tools Area: Supplementary tools labels Jul 9, 2019
@miri64 miri64 added this to the Release 2019.07 milestone Jul 9, 2019
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 12, 2019

Applied changes according to review comment @ scapy (see secdev/scapy#2131)

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 16, 2019

Updated this PR to reflect the final state of my PR to scapy.

@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Aug 9, 2019

Version 2.4.3 of scapy includes which came out 2 days ago. I think we can close this :-)

@miri64 miri64 closed this Aug 9, 2019
@miri64 miri64 deleted the pythonlibs/feat/scapy-mqttsn branch August 9, 2019 13:10
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Aug 9, 2019

See RIOT-OS/riotdocker#77 for docker integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Area: tests Area: tests and testing framework Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: new feature The issue requests / The PR implemements a new feature for RIOT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant