Beispiel #1
0
 def __init__(self):
     self._mytype = TGEnums.Ipv6OptionType.BindingAcknowledgment
     self._length = attrWithDefault(8)
     self._status = attrWithDefault(0)
     self._sequence_number = attrWithDefault(0)
     self._life_time = attrWithDefault(0)
     self._refresh = attrWithDefault(0)
Beispiel #2
0
 def __init__(self):
     self._mytype = TGEnums.Ipv6ExtensionType.Fragment
     self._reserved = attrWithDefault(0x1E)
     self._fragment_offset = attrWithDefault(100)
     self._res = attrWithDefault(11)
     self._mflag= attrWithDefault(True)
     self._id = attrWithDefault(286335522)
Beispiel #3
0
 def __init__(self):
     self._driver_obj = None
     self._parent = None
     self.active = True
     self._enable_ARP = attrWithDefault(True)
     self._enable_PING = attrWithDefault(False)
     self.protocol_interfaces = protocolInterfaces(self)
     self.arp_table = arp_table()
Beispiel #4
0
 def __init__(self):
     self._mytype = TGEnums.Ipv6OptionType.BindingUpdate
     self._length = attrWithDefault(8)
     self._acknowledge = attrWithDefault(0)
     self._home = attrWithDefault(0)
     self._router = attrWithDefault(0)
     self._duplicate = attrWithDefault(0)
     self._map = attrWithDefault(0)
     self._bicasting = attrWithDefault(0)
     self._prefix_length = attrWithDefault(0)
     self._sequence_number = attrWithDefault(0)
     self._life_time = attrWithDefault(0)
Beispiel #5
0
    def __init__(self):
        self._mytype = TGEnums.Ipv6ExtensionType.Destination
        self._opt_add_seq = []
        self._whole_options = OrderedDict()
        self.PAD1 = OrderedDict()  # type: list[V6Option_PAD1]
        self.PADN = OrderedDict()  # type: list[V6Option_PADN]
        self.home_address = OrderedDict()  # type: list[V6Option_HomeAddress]

        self._whole_options[TGEnums.Ipv6OptionType.PAD1] = self.PAD1
        self._whole_options[TGEnums.Ipv6OptionType.PADN] = self.PADN
        self._whole_options[TGEnums.Ipv6OptionType.HomeAddress] = self.home_address

        self._auto_pad = attrWithDefault(True)
Beispiel #6
0
 def __init__(self):
     self._opt_add_seq = []
     self._mytype = TGEnums.Ipv6ExtensionType.HopByHop
     self.options = OrderedDict()
     self.PAD1 = OrderedDict() # type: list[V6Option_PAD1]
     self.PADN = OrderedDict() # type: list[V6Option_PADN]
     self.jumbo = OrderedDict() # type: list[V6Option_Jumbo]
     self.router_alert = OrderedDict()  # type: list[V6Option_RouterAlert]
     self.binding_update = OrderedDict()  # type: list[V6Option_BindingUpdate]
     self.binding_ack = OrderedDict() # type: list[V6Option_BindingAck]
     self.binding_request = OrderedDict() # type: list[V6Option_BindingRequest]
     self.unique_id_sub = OrderedDict() # type: list[V6Option_MIpV6UniqueIdSub]
     self.alternative_coa_sub = OrderedDict() # type: list[V6Option_MlpV6AlternativeCoaSub]
     self.options[TGEnums.Ipv6OptionType.PAD1] = self.PAD1
     self.options[TGEnums.Ipv6OptionType.PADN] = self.PADN
     self.options[TGEnums.Ipv6OptionType.Jumbo] = self.jumbo
     self.options[TGEnums.Ipv6OptionType.RouterAlert] = self.router_alert
     self.options[TGEnums.Ipv6OptionType.BindingUpdate] = self.binding_update
     self.options[TGEnums.Ipv6OptionType.BindingAcknowledgment] = self.binding_ack
     self.options[TGEnums.Ipv6OptionType.BindingRequest] = self.binding_request
     self.options[TGEnums.Ipv6OptionType.MIpV6UniqueIdSub] = self.unique_id_sub
     self.options[TGEnums.Ipv6OptionType.MlpV6AlternativeCoaSub] = self.alternative_coa_sub
     self._auto_pad = attrWithDefault(True)
Beispiel #7
0
 def __init__(self):
     self._mytype = TGEnums.Ipv6OptionType.RouterAlert
     self._type = attrWithDefault(TGEnums.RouterAlertType.MLD)
Beispiel #8
0
 def __init__(self):
     self._mytype = TGEnums.Ipv6ExtensionType.Authentication
     self._payload_length = attrWithDefault(2)
     self._security_param_index = attrWithDefault(0)
     self._sequence_number_filed= attrWithDefault(0)
Beispiel #9
0
 def __init__(self):
     self._mytype = TGEnums.Ipv6ExtensionType.Routing
     self._reserved = attrWithDefault("00 00 00 00")
     self._nodes = attrWithDefault('')
Beispiel #10
0
 def __init__(self):
     self._mytype = TGEnums.Ipv6OptionType.HomeAddress
     self._length = attrWithDefault(16)
     self._address = attrWithDefault('0:0:0:0:0:0:0:0')
Beispiel #11
0
 def __init__(self):
     self._mytype = TGEnums.Ipv6OptionType.BindingRequest
     self._length = attrWithDefault(8)
Beispiel #12
0
 def __init__(self):
     self._enableCapture = False
     self._splitMode = attrWithDefault(TGEnums.splitSpeed.HW_DEFAULT)
     self._supported_modes = []
     self._driver_obj = None
     self._parent = None  #type: Card
Beispiel #13
0
 def __init__(self,port_uri=None, port_name=None):
     super(self.__class__, self).__init__(port_uri, port_name)
     self._config = None
     self._pl_mode = attrWithDefault(XenaEnums.PORT_PAYLOAD_MODE.UNDEFINED)
     self.filter_properties.filters[3].enabled = False
     self.filter_properties.capture_filter.enabled = False
Beispiel #14
0
 def __init__(self, s_name):
     super(self.__class__, self).__init__(s_name)
     self.rate = _xenaRATE_CONTROL()
     self._tpldid = attrWithDefault(-1)
     self._headers = None
Beispiel #15
0
 def __init__(self):
     super(self.__class__, self).__init__()
     self._utilization_value = attrWithDefault(1000000)