summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py
AgeCommit message (Collapse)AuthorFilesLines
2017-03-14scapy_server: skip uninitialized/unsupported field_desc._offsetAnton Kiselev1-3/+6
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2017-03-07scapy_service: typoYaroslav Brustinov1-1/+1
Change-Id: I195814433adfb842ed8773ea70add0bca65b6672 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2017-03-07scapy_server: fix layer offset calculation(pkt.offset -> pkt._offset)Anton Kiselev1-3/+3
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2017-03-07scapy_server: fix template testsAnton Kiselev1-32/+21
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2017-01-05Add support for predefined packet templates.ichebyki1-1/+90
Change-Id: Ib2bdcbe6ea18933394527f06be001607344c75e4 Signed-off-by: Igor Chebykin <igrche@gmail.com>
2017-01-05Update docs with info about Field Engine and predefined templates.Vyacheslav Ogai1-1/+1
Change-Id: Ia9480a21c982d2d245aef75908e248ecf0573053 Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-20scapy_server fix Python3 issueYaroslav Brustinov1-1/+1
Change-Id: I39c0590673fd481fd6cf01ea6c0657a586c3e0a8 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-12-19Merge branch 'payload_gen_total_size_ether_chksum' of ↵Hanoh Haim1-1/+2
git://github.com/kisel/trex-core into field_engine
2016-12-19Add check for cache_size parameter input.Vyacheslav Ogai1-0/+2
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Added a workaround for Ether.fieldsVyacheslav Ogai1-13/+27
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Add field engine instructions templates metadata.Vyacheslav Ogai1-1/+5
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Added autocompletion support for offset parameter.Vyacheslav Ogai1-7/+15
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Update _existed_flow_var_names. Now it returns all Flow var names.Vyacheslav Ogai1-1/+8
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Support autocompletion for VM instruction parameters.Vyacheslav Ogai1-8/+74
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Update field engine defs. Generation vm instrucions from updated model.Vyacheslav Ogai1-87/+16
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Add instrucitons meta. Delete split_by_field field engine global parameter.Vyacheslav Ogai1-13/+16
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Added initial implementation of Field Engine support.Vyacheslav Ogai1-4/+172
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-11-18scapy_service: take into account Ether.chksum when building payload with ↵Anton Kiselev1-1/+2
total_size Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-08scapy_service payload gen: allow template_code without size propertyAnton Kiselev1-5/+11
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-08fixup template_code payload generationAnton Kiselev1-1/+1
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-07scapy_service: payload generator upper limit and null checkAnton Kiselev1-11/+14
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-04scapy server python 3 compatibility fixes(file and pseudo-random generator)Anton Kiselev1-4/+9
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-04add access to scapy.all from eval, tests to IPOptions, TCPOptionsAnton Kiselev1-1/+1
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-04scapy_service: support total_bytes for BYTES payload generatorAnton Kiselev1-16/+27
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-04scapy_service: support {vtype: BYTES, generate: ↵Anton Kiselev1-1/+47
ascii/bytes/template/template code } Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-04add protocol definition json for scapy serverAnton Kiselev1-9/+36
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-10-27fix scapy_service ARP issue and add more layers in the serviceHanoh Haim1-2/+16
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
2016-10-21preserve abstract model structure, calculate values and show structure changesAnton Kiselev1-6/+23
2016-10-17update scapy_service for gui usage.Anton Kiselev1-86/+407
- build_pkt, reconstruct_pkt and corresponding data structures changed in order to support nested protocols and correct field ordering - binary packet editing capabilities with reconstruct_pkt - added read_pcap, write_pcap for working with pcap files - added get_definitions for retrieving scapy_service definitions for GUI - added get_payload_classes for retrieving available payload classes - python2, python3 support squash-merge of kisel / 196d638
2016-09-04scapy service: added version handler, added packet reconstruct from binary, ↵itraviv1-28/+140
added support for building packet from dictionary, added support for scapy field enhancement. scapy_zmq_server: fixed some path issues, changed minor argument parsing
2016-08-21scapy_service:itraviv1-2/+2
supported_methods now returns all functions when invoked with parameter 'all' zmq_client: added simple console to interact with server scapy_zmq_server: added verbosity feature
2016-08-18fixed issues with path to include VXLAN and MPLSitraviv1-15/+15
2016-08-18scapy_server_test:itraviv1-13/+23
skiping python3 tests scapy_service.py: minor changes to protocol_struct function zmq_client: added zmq_server: minor changes in exception handling
2016-08-15scapy_server_test:itraviv1-69/+145
added cases for testing: GRE, VXML, DNS, IPv6 changed test functions to include only the testted object and created other functions as testing engines. scapy_service: added api class. added documentry for api class changed method functions to include underscore
2016-08-111)removed unnecessary files from repositoryitraviv1-2/+2
2)fixed bug in checking update of data-base
2016-08-09changed file name from scapy_server to scapy_serviceitraviv1-0/+248
changed file for scapy_zmq_server changed functionality for scapy_server, added support for port with -s flag. scapy_service now functions as a service for the server wrapper