diff options
author | imarom <imarom@cisco.com> | 2016-02-03 09:21:10 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-03 14:07:14 -0500 |
commit | 2887433cb71f43c9bf91226915959f5ebea49869 (patch) | |
tree | 70c9e62a9e64a26d71f7dcfabb04e5f22993d353 /scripts/automation/trex_control_plane/client_utils/packet_builder.py | |
parent | 7447c92021d7ce3fc0fe115109b54a2f681f2392 (diff) |
integration with scapy
Diffstat (limited to 'scripts/automation/trex_control_plane/client_utils/packet_builder.py')
-rwxr-xr-x | scripts/automation/trex_control_plane/client_utils/packet_builder.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/client_utils/packet_builder.py b/scripts/automation/trex_control_plane/client_utils/packet_builder.py index 5ad6cd7a..f9031436 100755 --- a/scripts/automation/trex_control_plane/client_utils/packet_builder.py +++ b/scripts/automation/trex_control_plane/client_utils/packet_builder.py @@ -14,7 +14,9 @@ from abc import ABCMeta, abstractmethod from collections import namedtuple import base64 -class CTRexPktBuilder(object): +from packet_builder_interface import CTrexPktBuilderInterface + +class CTRexPktBuilder(CTrexPktBuilderInterface): """ This class defines the TRex API of building a packet using dpkt package. Using this class the user can also define how TRex will handle the packet by specifying the VM setting. @@ -480,6 +482,9 @@ class CTRexPktBuilder(object): def get_vm_data(self): return self.vm.dump() + def compile (self): + pass + def dump_pkt(self, encode = True): """ Dumps the packet as a decimal array of bytes (each item x gets value between 0-255) |