Home
last modified time | relevance | path

Searched refs:EthAddr (Results 1 – 8 of 8) sorted by relevance

/openthread-latest/tests/scripts/thread-cert/pktverify/
Daddrs.py35 class EthAddr(Bytes): class
152 a = EthAddr("010203040506")
153 assert a == EthAddr("01:02:03:04:05:06")
154 assert a == EthAddr("0102:0304:0506")
Dpacket.py37 from pktverify.addrs import EthAddr
67 eth_src = EthAddr(layer.get_field('eth.src'))
68 eth_dst = EthAddr(layer.get_field('eth.dst'))
Dutils.py34 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
70 'EthAddr': EthAddr,
Dtest_info.py34 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
51 self.ethaddrs = {int(k): EthAddr(v) for k, v in test_info.get('ethaddrs', {}).items()}
Dtest_layer_fields.py36 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
302 self.assertIsInstance(eth.src, EthAddr)
303 self.assertIsInstance(eth.dst, EthAddr)
339 self.assertIsInstance(rv, EthAddr)
Dpacket_filter.py35 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
414 eth_src: Optional[EthAddr] = None, argument
427 …def filter_backbone_query(self, target: str, *, eth_src: EthAddr, port: int = None) -> 'PacketFilt… argument
538 assert isinstance(addr, (str, EthAddr))
Dlayer_fields.py37 from pktverify.addrs import EthAddr, ExtAddr, Ipv6Addr
188 def _eth_addr(v: Union[LayerFieldsContainer, LayerField]) -> EthAddr:
191 return EthAddr(v.get_default_value())
/openthread-latest/tests/scripts/thread-cert/
Dthread_cert.py51 from pktverify.addrs import ExtAddr, EthAddr
474 test_info['ethaddrs'][i] = EthAddr(ethaddr).format_octets()