summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/services
AgeCommit message (Collapse)AuthorFilesLines
2017-03-14scapy_server: skip uninitialized/unsupported field_desc._offsetAnton Kiselev2-6/+55
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: add build_pkt_details test with offset & length verificationAnton Kiselev1-2/+28
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2017-03-07scapy_server: fix template testsAnton Kiselev3-63/+50
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2017-03-05Update scapy server json file for Repeatable randomYaroslav Brustinov1-1/+1
Change-Id: I148438bb03730ad10598f44857686e870c3ef99c Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2017-02-02fixed missing .so files due to ignored by .gitignore + fixed pathYaroslav Brustinov1-3/+9
Change-Id: If014548f3d007f9eda6d54332ac04952ea91f751 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2017-01-11scapy_server: add try-catch on determining self IPYaroslav Brustinov1-1/+4
Change-Id: Ibda7ba66a08385cfd8d73717e4c0fa257aa38436 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2017-01-05Add support for predefined packet templates.ichebyki11-1/+147
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 Haim2-5/+7
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 Ogai2-2/+18
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 Ogai2-2/+9
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Add more VM insructions.Vyacheslav Ogai1-27/+115
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Support autocompletion for VM instruction parameters.Vyacheslav Ogai2-28/+76
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Update field engine defs. Generation vm instrucions from updated model.Vyacheslav Ogai3-112/+125
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Add instrucitons meta. Delete split_by_field field engine global parameter.Vyacheslav Ogai3-21/+88
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-12-19Added initial implementation of Field Engine support.Vyacheslav Ogai4-6/+255
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
2016-11-18scapy_service: take into account Ether.chksum when building payload with ↵Anton Kiselev2-5/+7
total_size Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-08scapy_service payload gen: allow template_code without size propertyAnton Kiselev2-7/+20
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-08fixup template_code payload generationAnton Kiselev2-2/+2
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 Kiselev2-5/+10
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-04add access to scapy.all from eval, tests to IPOptions, TCPOptionsAnton Kiselev2-1/+23
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-04scapy_service: support total_bytes for BYTES payload generatorAnton Kiselev3-16/+60
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-04scapy_service: support {vtype: BYTES, generate: ↵Anton Kiselev3-2/+130
ascii/bytes/template/template code } Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-11-04add protocol definition json for scapy serverAnton Kiselev4-9/+254
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 Kiselev3-6/+87
2016-10-18add unit tests for scapy serviceAnton Kiselev2-0/+175
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
2016-10-17update scapy_service for gui usage.Anton Kiselev2-91/+421
- 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, ↵itraviv2-39/+150
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-24added logging mechanism with --log argumentitraviv1-11/+31
2016-08-21scapy_service:itraviv3-4/+84
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:itraviv3-26/+78
skiping python3 tests scapy_service.py: minor changes to protocol_struct function zmq_client: added zmq_server: minor changes in exception handling
2016-08-15fixed an issue in exception handlingitraviv1-8/+7
2016-08-15scapy_server_test:itraviv2-73/+149
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 repositoryitraviv3-364/+2
2)fixed bug in checking update of data-base
2016-08-10move 'main' function to bottom of fileitraviv1-19/+14
2016-08-101) fixed "main function": mechanism for running this script as a stand-alone ↵itraviv1-17/+29
program and running it from another python script 2) added closure of sockets and context explicitly (counting on python garbage-collector caused errors) 3) added support for 'remote shutdown' feature. now the server can be shut-down using 'shut_down' method as RPC from client
2016-08-09changed file name from scapy_server to scapy_serviceitraviv2-0/+396
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
2016-08-04server was made as an object with execute functionitraviv1-34/+39
2016-08-041) made a class Scapy_server encapsulating scapy_wrapper and scapy_serviceitraviv2-65/+9
2) fixed some exception handling
2016-08-041) added build_pkt when calculating offsetsitraviv1-0/+1
2016-08-041) changed class name to 'scapy_service'itraviv3-15/+166
2) changed returned values to be dictionaries instead of arrays