crash.software
Projects
Pull Requests
Issues
Builds
CatSniffer
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
CatSniffer
Files
🤬
Sign In
dc54f172
ROOT
/
firmware
/
ot-cc13x2-cc26x2
/
openthread
/
tests
/
scripts
/
thread-cert
/
test_ipv6.py
Search
History
1405 lines
|
ISO-8859-1
|
45 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
io
random
string
struct
unittest
ip_address
ICMPv6Header
UDPHeader
IPv6Header
IPv6PacketFactory
UDPDatagram
UDPDatagramFactory
ICMPv6Factory
HopByHopFactory
MPLOptionFactory
ICMPv6
HopByHopOptionHeader
HopByHopOption
HopByHop
MPLOption
IPv6Packet
ICMPv6EchoBody
BytesPayload
ICMPv6EchoBodyFactory
UpperLayerProtocol
UDPHeaderFactory
HopByHopOptionsFactory
ICMPv6DestinationUnreachableFactory
BytesPayloadFactory
ICMPv6DestinationUnreachable
UdpBasedOnSrcDstPortsPayloadFactory
FragmentHeader
common
HopByHopOptionBytesValue
_value
bytes
__init__
(self,_bytes)
to_bytes
(self)
to_dict
(self,d=None)
__len__
(self)
ICMPv6BytesBody
_icmp_body
bytes
__init__
(self,_bytes)
to_bytes
(self)
to_dict
(self,d=None)
__len__
(self)
ICMPv6BytesBodyFactory
parse
(self,data,context)
DummyHeader
checksum
__init__
(self)
DummyUpperLayerProtocol
(UpperLayerProtocol)
_data
_type
__init__
(self,header,data,_type)
type
(self)
to_bytes
(self)
__len__
(self)
any_uint
(bits)
any_type
()
any_code
()
any_checksum
()
any_fragment_offset
()
any_bool
()
any_fragment_identification
()
any_icmp_payload
(_type,code,checksum,body)
any_udp_payload
(src_port,dst_port,payload,checksum)
any_hop_by_hop_payload
(next_header,hdr_ext_len,payload)
any_body
()
any_payload
()
any_ip_address
()
any_port
()
any_mpl_opt_type
()
any_mpl_opt_data_len
()
any_mpl_S
()
any_mpl_M
()
any_mpl_V
()
any_mpl_sequence
()
any_mpl_seed_id
(S)
any_next_header
()
any_traffic_class
()
any_flow_label
()
any_hop_limit
()
any_payload_length
()
any_hdr_ext_len
()
any_length
()
any_str
(length=8)
any_bytes
(length=4)
any_dict
(keys_count=4)
any_mpl_option
()
any_hop_by_hop_bytes_option_header
(length=4)
any_hop_by_hop_bytes_value
(length=2)
any_hop_by_hop_bytes_option
()
any_hop_by_hop_mpl_option
()
any_identifier
()
any_sequence_number
()
any_data
()
any_upper_layer_payload
(data,_type)
any_extension_headers
()
any_message_info
()
TestIPv6Header
(unittest.TestCase)
test_should_convert_IPv6_header_to_bytes_when_to_bytes_method_is_called
(self)
test_should_create_IPv6Header_when_from_bytes_classmethod_is_called
(self)
test_should_return_proper_header_length_when_IPv6Packet_object_is_called_in_len
(self)
TestUDPHeader
(unittest.TestCase)
test_should_convert_UDP_header_to_bytes_when_to_bytes_method_is_called
(self)
test_should_create_UDPHeader_when_from_bytes_classmethod_is_called
(self)
test_should_return_proper_header_length_when_UDPHeader_object_is_called_in_len
(self)
test_should_return_17_when_type_property_is_called
(self)
TestICMPv6Header
(unittest.TestCase)
test_should_convert_icmp_message_header_to_bytes_when_to_bytes_method_is_called
(self)
test_should_create_ICMPv6Header_when_to_bytes_classmethod_is_called
(self)
test_should_return_proper_header_length_when_ICMPv6Header_object_is_called_in_len
(self)
TestIPv6Packet
(unittest.TestCase)
test_should_build_IPv6Packet_with_ICMP_payload_from_well_know_values_when_to_bytes_method_is_called
(self)
test_should_build_IPv6Packet_with_UDP_payload_from_well_know_values_when_to_bytes_method_is_called
(self)
TestIPv6PacketFactory
(unittest.TestCase)
test_should_create_IPv6Packet_with_MPL_and_ICMP_when_to_bytes_method_is_called
(self)
test_should_create_IPv6Packet_without_any_extension_header_with_ICMP_when_to_bytes_method_is_called
(self)
test_should_set_message_info_field_when_to_bytes_method_is_called
(self)
TestUDPDatagram
(unittest.TestCase)
test_should_creates_bytes_from_UDPHeader_and_payload_when_to_bytes_method_is_called
(self)
TestIPv6FragmentHeader
(unittest.TestCase)
test_shold_convert_IPv6_fragment_header_to_bytes_when_to_bytes_method_is_called
(self)
test_should_create_FragmentHeader_when_from_bytes_classmethod_is_called
(self)
TestICMPv6
(unittest.TestCase)
test_should_creates_bytes_from_ICMPv6Header_and_body_when_to_bytes_method_is_called
(self)
TestHopByHop
(unittest.TestCase)
_calculate_hdr_ext_len
(self,payload_len)
_calculate_required_padding
(self,content_length)
create_padding
(self,padding_length)
test_should_create_bytes_from_HopByHop_when_to_bytes_method_is_called
(self)
TestMPLOption
(unittest.TestCase)
test_should_convert_MPLOption_to_bytes_when_to_bytes_method_is_called
(self)
test_should_create_MPLOption_when_to_bytes_method_is_called_with_data
(self)
test_check_if_mpl_seed_id_length_values_was_not_changed
(self)
test_should_return_proper_length_when_len_is_called_with_mpl_option_object
(self)
TestclassHopByHopOption
(unittest.TestCase)
test_should_convert_HopByHopOption_to_bytes_when_to_bytes_method_is_called
(self)
test_should_return_length_of_HopByHopOption_when_len_is_called_with_hop_by_hop_option_object
(self)
TestHopByHopOptionHeader
(unittest.TestCase)
test_should_convert_HopByHopOptionHeader_to_bytes_when_to_bytes_method_is_called
(self)
test_should_create_HopByHopOptionHeader_when_to_bytes_method_is_called_with_data
(self)
test_should_return_proper_length_when_len_is_called_with_HopByHopOptionHeader_object
(self)
TestHopByHopFactory
(unittest.TestCase)
_calculate_hdr_ext_len
(self,payload_length)
padding
(self,content_length)
test_should_create_HopByHop_object_instance_when_to_bytes_method_is_called_with_data
(self)
test_should_raise_RuntimeError_when_no_option_factory_is_set_and_parse_method_is_called
(self)
TestMPLOptionFactory
(unittest.TestCase)
test_should_produce_MPLOption_from_bytes_when_to_bytes_method_is_called_with_data
(self)
TestUdpBasedOnSrcDstPortsPayloadFactory
(unittest.TestCase)
test_should_create_payload_from_data_when_src_port_factory_is_defined_and_parse_method_is_called
(self)
test_should_create_payload_from_data_when_dst_port_factory_is_defined_and_parse_method_is_called
(self)
test_should_raise_RuntimeError_when_parse_method_is_called_but_required_factory_is_not_defined
(self)
TestUDPDatagramFactory
(unittest.TestCase)
test_should_produce_UDPDatagram_from_bytes_when_to_bytes_method_is_called_with_data
(self)
test_should_set_src_and_dst_port_in_message_info_when_parse_method_is_called
(self)
TestICMPv6Factory
(unittest.TestCase)
test_should_produce_ICMPv6_from_bytes_when_to_bytes_method_is_called_with_data
(self)
test_should_raise_RuntimeError_when_method_parse_is_called_but_body_factory_is_not_present
(self)
TestBytesPayload
(unittest.TestCase)
test_should_create_BytesPayload_when_from_bytes_class_method_is_called
(self)
test_should_return_exactly_the_same_data_as_passed_to_constructor_when_to_bytes_method_is_called
(self)
test_should_return_the_same_len_as_data_passed_to_constructor_when_len_is_called_on_BytesPayload_object
(self)
TestICMPv6EchoBody
(unittest.TestCase)
test_convert_ICMPv6_echo_body_to_data_when_to_bytes_method_is_called
(self)
test_should_create_ICMPv6EchoBody_from_data_when_from_bytes_classmethod_is_called
(self)
test_should_build_ICMPv6EchoBody_from_well_know_values_when_to_bytes_method_is_called
(self)
TestICMPv6EchoBodyFactory
(unittest.TestCase)
test_should_build_ICMPv6EchoBody_when_to_bytes_method_is_called
(self)
TestICMPv6DestinationUnreachable
(unittest.TestCase)
test_should_convert_ICMPv6DestinationUnreachable_to_bytearray_when_to_bytes_method_is_called
(self)
test_should_convert_bytearray_to_ICMPv6DestinationUnreachable_when_from_bytes_method_is_called
(self)
test_should_raise_RuntimeError_when_from_bytes_method_is_called
(self)
TestICMPv6DestinationUnreachableFactory
(unittest.TestCase)
test_should_create_ICMPv6DestinationUnreachable_when_parse_method_is_called
(self)
TestUDPHeaderFactory
(unittest.TestCase)
test_should_create_UDPHeader_when_to_bytes_method_is_called
(self)
TestHopByHopOptionsFactory
(unittest.TestCase)
test_should_create_option_from_bytearray_when_to_bytes_method_is_called
(self)
All occurrences
Please wait...
Page is in error, reload to recover