ostinato.protocols.icmp_pb2 module¶
Easily configure and manage ICMP protocol settings using the icmp_pb2 module to add and customize ICMP attributes in Ostinato created packets
To add and configure Icmp in a stream, add a protocol to the stream, set the protocol id to ost_pb.Protocol.kIcmpFieldNumber
and access the Icmp object from the Protocol object's Extensions
dictionary using the key icmp_pb2.icmp
from ostinato.protocols import icmp_pb2
...
# stream is an object of type ost_pb.Stream
proto = stream.protocol.add()
proto.protocol_id.id = ost_pb.Protocol.kIcmpFieldNumber
my_icmp = proto.Extensions[icmp_pb2.icmp]
my_icmp.<attribute>
Icmp class¶
Class constants¶
Version¶
Icmp.kIcmp4
Icmp.kIcmp6
Class attributes¶
icmp_version¶
Icmp.icmp_version : Version
See Version
is_override_checksum¶
Icmp.is_override_checksum : boolean
type¶
Icmp.type : long
code¶
Icmp.code : long
checksum¶
Icmp.checksum : long
identifier¶
Icmp.identifier : long
sequence¶
Icmp.sequence : long