Home
last modified time | relevance | path

Searched refs:Ipv6Addr (Results 1 – 25 of 25) sorted by relevance

/openthread-3.6.0/tests/scripts/thread-cert/pktverify/
Dconsts.py30 from pktverify.addrs import Ipv6Addr
36 LINK_LOCAL_All_THREAD_NODES_MULTICAST_ADDRESS = Ipv6Addr('ff32:40:fd00:db8::1')
37 REALM_LOCAL_All_THREAD_NODES_MULTICAST_ADDRESS = Ipv6Addr('ff33:40:fd00:db8::1')
38 REALM_LOCAL_ALL_NODES_ADDRESS = Ipv6Addr('ff03::1')
39 REALM_LOCAL_ALL_ROUTERS_ADDRESS = Ipv6Addr('ff03::2')
40 LINK_LOCAL_ALL_NODES_MULTICAST_ADDRESS = Ipv6Addr('ff02::1')
41 LINK_LOCAL_ALL_ROUTERS_MULTICAST_ADDRESS = Ipv6Addr('ff02::2')
42 LINK_LOCAL_ALL_BBRS_MULTICAST_ADDRESS = Ipv6Addr('ff32:40:fd00:7d03:7d03:7d03:0:3')
45 MA1 = Ipv6Addr('ff04::1234:777a:1')
46 MA1g = Ipv6Addr('ff0e::1234:777a:1')
[all …]
Daddrs.py69 class Ipv6Addr(Bytes): class
78 addr = Ipv6Addr._expand(addr)
176 a = Ipv6Addr("00112233445566778899aabbccddeeff")
177 assert a == Ipv6Addr("00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff")
178 assert a == Ipv6Addr("0011:2233:4455:6677:8899:aabb:ccdd:eeff")
188 assert Ipv6Addr("fd00:db8::ff:fe00:8001") == Ipv6Addr("fd00:0db8:0000:0000:0000:00ff:fe00:8001")
189 print(Ipv6Addr("fdde:ad00:beef:0:9d87:85f0:3358:3fff"))
Dtest_info.py34 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
52 … self.ipaddrs = {int(k): [Ipv6Addr(x) for x in l] for k, l in test_info.get('ipaddrs', {}).items()}
53 self.mleids = {int(k): Ipv6Addr(v) for k, v in test_info.get('mleids', {}).items()}
54 self.rlocs = {int(k): Ipv6Addr(v) for k, v in test_info.get('rlocs', {}).items()}
56 … self.omrs = {int(k): [Ipv6Addr(x) for x in l] for k, l in test_info.get('omrs', {}).items()}
57 self.duas = {int(k): Ipv6Addr(v) for k, v in test_info.get('duas', {}).items()}
59 … self.leader_aloc = Ipv6Addr(test_info.get('leader_aloc')) if 'leader_aloc' in test_info else ''
Dutils.py34 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
69 'Ipv6Addr': Ipv6Addr,
Dpacket_filter.py35 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
542 assert isinstance(addr, (str, Ipv6Addr))
546 assert isinstance(addr1, (str, Ipv6Addr))
547 assert isinstance(addr2, (str, Ipv6Addr))
551 assert isinstance(src_addr, (str, Ipv6Addr))
552 assert isinstance(dst_addr, (str, Ipv6Addr))
576 def filter_AMPLFMA(self, mpl_seed_id: Union[int, Ipv6Addr] = None, **kwargs): argument
611 def filter_icmpv6_nd_ns(self, target_address: Ipv6Addr): argument
615 def filter_icmpv6_nd_na(self, target_address: Ipv6Addr): argument
Dtest_layer_fields.py36 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
164 self.assertIsInstanceOrNull(thread_bl.tlv.target_eid, Ipv6Addr)
251 self.assertIsInstanceOrNull(icmpv6.nd.ns.target_address, Ipv6Addr)
266 self.assertIsInstanceOrNull(lowpan.src, Ipv6Addr)
267 self.assertIsInstanceOrNull(lowpan.dst, Ipv6Addr)
337 self.assertIsInstance(rv, Ipv6Addr)
Dlayer_fields.py37 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
182 def _ipv6_addr(v: Union[LayerFieldsContainer, LayerField]) -> Ipv6Addr:
185 return Ipv6Addr(v.get_default_value())
/openthread-3.6.0/tests/scripts/thread-cert/
DCert_5_6_09_NetworkDataForwarding.py36 from pktverify.addrs import Ipv6Addr
149 ).must_verify(lambda p: {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
160 p.thread_nwd.tlv.type) and {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
183 Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')
193 p.thread_nwd.tlv.type) and {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
208 } == set(p.thread_nwd.tlv.type) and {Ipv6Addr('2001:2:0:1::'),
209Ipv6Addr('2001:2:0:2::')} == set(p.thread_nwd.tlv.prefix))
216 p.thread_nwd.tlv.type) and {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
DCert_7_1_05_BorderRouterAsRouter.py36 from pktverify.addrs import Ipv6Addr
146 Ipv6Addr(PREFIX_2001[:-3]),
147 Ipv6Addr(PREFIX_2002[:-3]),
148 Ipv6Addr(PREFIX_2003[:-3])
162 Ipv6Addr(PREFIX_2001[:-3]),
163 Ipv6Addr(PREFIX_2002[:-3]),
164 Ipv6Addr(PREFIX_2003[:-3])
219 Ipv6Addr(PREFIX_2001[:-3]),
220 Ipv6Addr(PREFIX_2003[:-3])
DCert_5_3_11_AddressQueryTimeoutIntervals.py38 from pktverify.addrs import Ipv6Addr
146 filter_ipv6_dst(Ipv6Addr(X)).\
153 filter(lambda p: p.thread_address.tlv.target_eid == Ipv6Addr(X)).\
163 filter_ipv6_dst(Ipv6Addr(X)).\
184 filter_ipv6_dst(Ipv6Addr(X)).\
194 filter(lambda p: p.thread_address.tlv.target_eid == Ipv6Addr(X)).\
DCert_7_1_08_BorderRouterAsFED.py37 from pktverify.addrs import Ipv6Addr
143 Ipv6Addr(PREFIX_2001[:-3]),
144 Ipv6Addr(PREFIX_2002[:-3])
163 Ipv6Addr(PREFIX_2001[:-3]),
164 Ipv6Addr(PREFIX_2002[:-3])
181 Ipv6Addr(PREFIX_2001[:-3]),
182 Ipv6Addr(PREFIX_2002[:-3])
DCert_7_1_07_BorderRouterAsLeader.py38 from pktverify.addrs import Ipv6Addr
227 [Ipv6Addr(PREFIX_1[:-3])] ==
262 [Ipv6Addr(PREFIX_1[:-3])] ==
291 is_sublist([Ipv6Addr(PREFIX_1[:-3])], p.thread_nwd.tlv.prefix)
317 is_sublist([Ipv6Addr(PREFIX_1[:-3])], p.thread_nwd.tlv.prefix) and\
339 [Ipv6Addr(PREFIX_2[:-3])] ==
390 is_sublist([Ipv6Addr(PREFIX_1[:-3]), Ipv6Addr(PREFIX_2[:-3])],
436 is_sublist([Ipv6Addr(PREFIX_1[:-3]), Ipv6Addr(PREFIX_2[:-3])],
516 is_sublist([Ipv6Addr(PREFIX_1[:-3]), Ipv6Addr(PREFIX_2[:-3])],
552 is_sublist([Ipv6Addr(PREFIX_1[:-3]), Ipv6Addr(PREFIX_2[:-3])],
DCert_5_6_06_NetworkDataExpiration.py36 from pktverify.addrs import Ipv6Addr
167 Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::'),
168 Ipv6Addr('2001:2:0:3::')
182 Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:3::')
201 {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::'),
202Ipv6Addr('2001:2:0:3::')} == set(p.thread_nwd.tlv.prefix) and p.mle.tlv.leader_data.data_version ==
DCert_5_6_05_NetworkDataRegisterAfterAttachRouter.py36 from pktverify.addrs import Ipv6Addr
140 ).must_verify(lambda p: {Ipv6Addr('2001:2:0:1::'),
141 Ipv6Addr('2001:2:0:2::'),
142Ipv6Addr('2001:2:0:3::')} == set(p.thread_nwd.tlv.prefix) and p.thread_nwd.tlv.
156 p.mle.tlv.type) and {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:3::')} == set(
DCert_7_1_06_BorderRouterAsLeader.py38 from pktverify.addrs import Ipv6Addr
203 [Ipv6Addr(PREFIX_2001[:-3])] ==
237 [Ipv6Addr(PREFIX_2001[:-3])] ==
265 [Ipv6Addr(PREFIX_2001[:-3])] ==
291 [Ipv6Addr(PREFIX_2001[:-3])] ==
323 [Ipv6Addr(PREFIX_2001[:-3])] ==
346 [Ipv6Addr(PREFIX_2001[:-3])] ==
381 [Ipv6Addr(PREFIX_2001[:-3])] ==
400 [Ipv6Addr(PREFIX_2001[:-3])] ==
433 [Ipv6Addr(PREFIX_2001[:-3])] ==
[all …]
DCert_7_1_04_BorderRouterAsRouter.py36 from pktverify.addrs import Ipv6Addr
131 Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')
142 p.mle.tlv.type) and {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
153 lambda p: {Ipv6Addr('2001:2:0:1::')} == set(p.thread_nwd.tlv.prefix
DCert_7_1_02_BorderRouterAsRouter.py36 from pktverify.addrs import Ipv6Addr
131 Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')
145 p.must_verify(lambda p: p.wpan.dst64 == MED and {Ipv6Addr('2001:2:0:1::'),
146Ipv6Addr('2001:2:0:2::')} == set(p.thread_nwd.tlv.prefix))
152 lambda p: p.wpan.dst64 == SED and {Ipv6Addr('2001:2:0:1::')} == set(
DCert_5_6_02_NetworkDataRegisterBeforeAttachRouter.py36 from pktverify.addrs import Ipv6Addr
137 lambda p: {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
147 …lambda p: {Ipv6Addr('2001:2:0:1::')} == set(p.thread_nwd.tlv.prefix) and p.thread_nwd.tlv.border_r…
154 lambda p: {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
DCert_7_1_01_BorderRouterAsLeader.py37 from pktverify.addrs import Ipv6Addr
165 Ipv6Addr(PREFIX_2001[:-3]),
166 Ipv6Addr(PREFIX_2002[:-3])
212 [Ipv6Addr(PREFIX_2001[:-3])] == p.thread_nwd.tlv.prefix and\
254 Ipv6Addr(PREFIX_2001[:-3]),
255 Ipv6Addr(PREFIX_2002[:-3])
DCert_7_1_03_BorderRouterAsLeader.py37 from pktverify.addrs import Ipv6Addr
147 Ipv6Addr(PREFIX_2001[:-3]),
148 Ipv6Addr(PREFIX_2002[:-3])
201 [Ipv6Addr(PREFIX_2001[:-3])] == p.thread_nwd.tlv.prefix and\
DCert_5_6_03_NetworkDataRegisterAfterAttachLeader.py36 from pktverify.addrs import Ipv6Addr
129 …).must_verify(lambda p: {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(p.thread_nwd.t…
143 …p.mle.tlv.type) and {Ipv6Addr('2001:2:0:1::')} == set(p.thread_nwd.tlv.prefix) and p.thread_nwd.tl…
DCert_5_6_04_NetworkDataRegisterAfterAttachRouter.py36 from pktverify.addrs import Ipv6Addr
136 …).must_verify(lambda p: {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(p.thread_nwd.t…
150 …p.mle.tlv.type) and {Ipv6Addr('2001:2:0:1::')} == set(p.thread_nwd.tlv.prefix) and p.thread_nwd.tl…
DCert_5_6_01_NetworkDataRegisterBeforeAttachLeader.py36 from pktverify.addrs import Ipv6Addr
140 …{Ipv6Addr('2001:2:0:1::')} == set(p.thread_nwd.tlv.prefix) and p.thread_nwd.tlv.border_router.flag…
147 lambda p: {Ipv6Addr('2001:2:0:1::'), Ipv6Addr('2001:2:0:2::')} == set(
DCert_5_3_10_AddressQuery.py41 from pktverify.addrs import Ipv6Addr
DCert_9_2_18_RollBackActiveTimestamp.py36 from pktverify.addrs import Ipv6Addr