summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/doc_stl/api/field_engine.rst
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-03-14 16:55:42 +0200
committerHanoh Haim <hhaim@cisco.com>2016-03-14 16:55:42 +0200
commit5817a4501ec08f56c3684260c8373f20e4c6c0f0 (patch)
tree81ee4fa508276f147b1f09bdfbea9f575302f9a5 /scripts/automation/trex_control_plane/doc_stl/api/field_engine.rst
parent9a3228de830a3517d52ab60a9ec2832dd69f62f9 (diff)
add profile doc
Diffstat (limited to 'scripts/automation/trex_control_plane/doc_stl/api/field_engine.rst')
-rw-r--r--scripts/automation/trex_control_plane/doc_stl/api/field_engine.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/doc_stl/api/field_engine.rst b/scripts/automation/trex_control_plane/doc_stl/api/field_engine.rst
index 8b192491..95a23ac1 100644
--- a/scripts/automation/trex_control_plane/doc_stl/api/field_engine.rst
+++ b/scripts/automation/trex_control_plane/doc_stl/api/field_engine.rst
@@ -14,7 +14,7 @@ The FE can allocate stream variables in a Stream context, write a stream variabl
* Update IPv4 checksum
-for example this snippet will create SYN Attack::
+Snippet will create SYN Attack::
# create attack from random src_ip from 16.0.0.0-18.0.0.254 and random src_port 1025-65000
# attack 48.0.0.1 server
@@ -108,7 +108,8 @@ STLVmTupleGen
Field Engine snippet
--------------------
-Example1::
+.. code-block:: python
+ :caption: Example1
base_pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)
@@ -130,9 +131,10 @@ Example1::
pkt = STLPktBuilder(pkt = base_pkt/pad,
vm = vm)
-
-Example2::
+.. code-block:: python
+ :caption: Example2
+
#range of source mac-addr