ostinato.protocols.arp_pb2 module¶
Configure and add ARP protocol attributes within Ostinato streams by accessing and modifying these properties using the Arp object.
To add and configure Arp in a stream, add a protocol to the stream, set the protocol id to ost_pb.Protocol.kArpFieldNumber
and access the Arp object from the Protocol object's Extensions
dictionary using the key arp_pb2.arp
from ostinato.protocols import arp_pb2
...
# stream is an object of type ost_pb.Stream
proto = stream.protocol.add()
proto.protocol_id.id = ost_pb.Protocol.kArpFieldNumber
my_arp = proto.Extensions[arp_pb2.arp]
my_arp.<attribute>
Arp class¶
Class constants¶
HwAddrMode¶
Arp.kFixed
Arp.kIncrement
Arp.kDecrement
ProtoAddrMode¶
Arp.kFixedHost
Arp.kIncrementHost
Arp.kDecrementHost
Arp.kRandomHost
Class attributes¶
hw_type¶
Arp.hw_type : long
proto_type¶
Arp.proto_type : long
hw_addr_len¶
Arp.hw_addr_len : long
proto_addr_len¶
Arp.proto_addr_len : long
op_code¶
Arp.op_code : long
sender_hw_addr¶
Arp.sender_hw_addr : long
sender_hw_addr_mode¶
Arp.sender_hw_addr_mode : HwAddrMode
See HwAddrMode
sender_hw_addr_count¶
Arp.sender_hw_addr_count : long
sender_proto_addr¶
Arp.sender_proto_addr : long
sender_proto_addr_mode¶
Arp.sender_proto_addr_mode : ProtoAddrMode
See ProtoAddrMode
sender_proto_addr_count¶
Arp.sender_proto_addr_count : long
sender_proto_addr_mask¶
Arp.sender_proto_addr_mask : int
target_hw_addr¶
Arp.target_hw_addr : long
target_hw_addr_mode¶
Arp.target_hw_addr_mode : HwAddrMode
See HwAddrMode
target_hw_addr_count¶
Arp.target_hw_addr_count : long
target_proto_addr¶
Arp.target_proto_addr : long
target_proto_addr_mode¶
Arp.target_proto_addr_mode : ProtoAddrMode
See ProtoAddrMode
target_proto_addr_count¶
Arp.target_proto_addr_count : long
target_proto_addr_mask¶
Arp.target_proto_addr_mask : int