ostinato.protocols.ip6_pb2 module

To add and configure Ip6 in a stream, add a protocol to the stream, set the protocol id to ost_pb.Protocol.kIp6FieldNumber and access the Ip6 object from the Protocol object's Extensions dictionary using the key ip6_pb2.ip6

from ostinato.protocols import ip6_pb2
...
# stream is an object of type ost_pb.Stream
proto = stream.protocol.add()
proto.protocol_id.id = ost_pb.Protocol.kIp6FieldNumber
my_ip6 = proto.Extensions[ip6_pb2.ip6]

You can then set Ip6 attributes using my_ip6.<attribute>

Ip6 class

Class constants

AddrMode

Ip6.kFixed 
Ip6.kIncHost 
Ip6.kDecHost 
Ip6.kRandomHost

Class attributes

is_override_version

Ip6.is_override_version : boolean

Optional. If not set, defaults to False.

is_override_payload_length

Ip6.is_override_payload_length : boolean

Optional. If not set, defaults to False.

is_override_next_header

Ip6.is_override_next_header : boolean

Optional. If not set, defaults to False.

version

Ip6.version : long

Optional. If not set, defaults to 6.

traffic_class

Ip6.traffic_class : long

Optional. If not set, defaults to 0.

flow_label

Ip6.flow_label : long

Optional. If not set, defaults to 0.

payload_length

Ip6.payload_length : long

Optional. If not set, defaults to 0.

next_header

Ip6.next_header : long

Optional. If not set, defaults to 0.

hop_limit

Ip6.hop_limit : long

Optional. If not set, defaults to 127.

src_addr_hi

Ip6.src_addr_hi : long

Optional. If not set, defaults to 0.

src_addr_lo

Ip6.src_addr_lo : long

Optional. If not set, defaults to 0.

src_addr_mode

Ip6.src_addr_mode : AddrMode

Optional. If not set, defaults to kFixed.

See AddrMode

src_addr_count

Ip6.src_addr_count : long

Optional. If not set, defaults to 16.

src_addr_prefix

Ip6.src_addr_prefix : long

Optional. If not set, defaults to 64.

dst_addr_hi

Ip6.dst_addr_hi : long

Optional. If not set, defaults to 0.

dst_addr_lo

Ip6.dst_addr_lo : long

Optional. If not set, defaults to 0.

dst_addr_mode

Ip6.dst_addr_mode : AddrMode

Optional. If not set, defaults to kFixed.

See AddrMode

dst_addr_count

Ip6.dst_addr_count : long

Optional. If not set, defaults to 16.

dst_addr_prefix

Ip6.dst_addr_prefix : long

Optional. If not set, defaults to 64.

results matching ""

    No results matching ""