Home
last modified time | relevance | path

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

1234

/openthread-3.5.0/tools/harness-thci/
DOpenThread_WpanCtl.py86 self.port = self.dutIpv4 + ':' + self.dutPort
92 self.port = kwargs.get('SerialPort')
112 print('[%s] Expecting [%s]' % (self.port, expected))
117 print('[%s] Got line [%s]' % (self.port, line))
120 print('[%s] Expected [%s]' % (self.port, expected))
132 logging.info('%s: reading', self.port)
139 logging.info('%s: writing', self.port)
151 logging.info('%s: reading line', self.port)
162 logging.exception('%s: No new data', self.port)
175 logging.info('%s: sending line', self.port)
[all …]
DOpenThread_BR.py66 def __init__(self, ip, port, username, password): argument
68 self.port = int(port)
83 … self.__handle.connect(self.ip, port=self.port, username=self.username, password=self.password)
120 print('%s - %s - %s' % (self.port, time.strftime('%b %d %H:%M:%S'), msg))
127 def __init__(self, port, baudrate): argument
128 self.port = port
129 self.__handle = serial.Serial(port, baudrate, timeout=0)
173 print('%s - %s - %s' % (self.port, time.strftime('%b %d %H:%M:%S'), msg))
204 raise Exception('%s: failed to find end of response' % self.port)
216 print('[%s] Got line [%r]' % (self.port, line))
[all …]
/openthread-3.5.0/tools/harness-automation/autothreadharness/
Dhelpers.py49 def mark_bad_golden_device(self, port): argument
50 self.logger.warning('mark serial port[%s] as bad', port)
51 self.data['golden_device_denylist'].append(port)
54 def is_bad_golden_device(self, port): argument
55 return port in self.data['golden_device_denylist']
Dopen_thread_controller.py52 def __init__(self, port, log=False): argument
59 self.port = port
95 logger.debug('My port is %s', self.port)
96 if self.port.startswith('NET'):
97 portnum = settings.SER2NET_PORTBASE + int(self.port.split('NET')[1])
103 elif ':' in self.port:
104 host, port = self.port.split(':')
105 self.handle = socket.create_connection((host, port))
109 self.handle = serial.Serial(self.port, 115200, timeout=0, xonxoff=True)
131 logger.debug('[%s] Expecting [%s]', self.port, expected)
/openthread-3.5.0/src/cli/
DREADME_UDP.md42 - [bind](#bind-netif-ip-port)
44 - [connect](#connect-ip-port)
47 - [send](#send-ip-port-message)
66 ### bind [netif] \<ip\> \<port\>
68 Assigns a name (i.e. IPv6 address and port) to the example socket.
75 - port: the UDP port
95 ### connect \<ip\> \<port\>
100 - port: the peer's UDP port.
154 ### send \<ip\> \<port\> \<message\>
159 - port: the UDP destination port.
[all …]
DREADME_TCP.md60 - [bind](#bind-ip-port)
61 - [connect](#connect-ip-port-fastopen)
66 - [listen](#listen-ip-port)
109 ### bind \<ip\> \<port\>
111 Associates a name (i.e. IPv6 address and port) to the example TCP endpoint.
114 - port: the TCP port.
121 ### connect \<ip\> \<port\> [\<fastopen\>]
128 - port: the peer's TCP port.
192 ### listen \<ip\> \<port\>
194 …TCP listener to listen for incoming connections on the specified name (i.e. IPv6 address and port).
[all …]
DREADME_SRP_CLIENT.md103 instance:"ins2", name:"_test2._udp", state:Registered, port:111, priority:1, weight:1
104 … instance:"ins1", name:"_test1._udp,_sub1,_sub2", state:Registered, port:777, priority:0, weight:0
114 instance:"ins1", name:"_test1._udp", state:Registered, port:777, priority:0, weight:0
116 instance:"ins2", name:"_test2._udp,_sub1,_sub2", state:Removed, port:111, priority:1, weight:1
127 instance:"ins1", name:"_test1._udp", state:Removed, port:777, priority:0, weight:0
296 Print the server socket address (IPv6 address and port number).
314 ### server port
316 Print the server port number
319 > srp client server port
332 instance:"ins2", name:"_test2._udp,_sub1,_sub2", state:Registered, port:111, priority:1, weight:1
[all …]
/openthread-3.5.0/third_party/mbedtls/repo/tests/scripts/
Dtcp_client.pl36 my ($host, $port) = @_;
38 PeerPort => $port,
41 die "Cannot connect to $host:$port: $!" unless $socket;
95 my ($host, $port, $data1, $response1) = @ARGV;
96 my $connection = open_connection($host, $port);
/openthread-3.5.0/tests/scripts/thread-cert/backbone/
Dtest_dua_dad.py232 pkts.filter_wpan_src64(ROUTER2).filter_coap_request('/a/aq', port=MM).filter(
235 pkts.filter_backbone_query(ROUTER1_DUA, eth_src=PBBR2_ETH, port=BB).must_next()
237 pkts.filter_backbone_query(ROUTER1_DUA, eth_src=SBBR_ETH, port=BB).must_not_next()
239 pkts.filter_backbone_answer(ROUTER1_DUA, eth_src=PBBR_ETH, port=BB).must_next()
241 pkts.filter_wpan_src64(PBBR2).filter_coap_request('/a/an', port=MM).filter(
252 pkts.filter_backbone_query(DUPLICATE_DUA, eth_src=PBBR_ETH, port=BB).must_next()
255 ba = pkts.filter_backbone_answer(DUPLICATE_DUA, eth_src=PBBR2_ETH, port=BB).must_next()
265 pkts.filter_backbone_query(DUPLICATE_DUA, eth_src=PBBR_ETH, port=BB).must_not_next()
269 …_wpan_src64(PBBR).filter_ipv6_dst(ROUTER1_RLOC).filter_coap_request('/a/ae', port=MM).must_next() \
278 …new_dr = pkts.filter_wpan_src64(ROUTER1).filter_coap_request('/n/dr', port=MM).must_next().must_ve…
[all …]
/openthread-3.5.0/tests/toranj/cli/
Dtest-014-address-resolver.py148 port = 1234 variable
154 r1.udp_send(prefix + '800:' + str(num), port, 'hi_nobody')
195 r1.udp_send(prefix + '800:' + str(num), port, 'hi_nobody')
220 r1.udp_send(prefix + '800:' + str(num), port, 'hi_nobody')
273 r2.udp_bind(prefix + '2:' + str(num), port)
274 r2.udp_send(prefix + '1', port, 'hi_r1_from_r2_snoop_me')
303 r1.udp_send(prefix + '2:' + str(num), port, 'hi_back_r2_from_r1')
327 r1.udp_send(prefix + '3:' + str(num), port, 'hi_r3_from_r1')
347 r1.udp_send(prefix + 'c3:' + str(num), port, 'hi_c3_from_r1')
368 r1.udp_send(prefix + '2:' + str(num), port, 'hi_again_r2_from_r1')
[all …]
/openthread-3.5.0/tools/harness-simulation/harness/Thread_Harness/THCI/
DOpenThread_BR_Sim.py56 def __init__(self, ip, port, username, password, docker_name): argument
58 self.port = int(port)
72 … self.__handle.connect(self.ip, port=self.port, username=self.username, password=self.password)
131 self.telnetIp = self.port = discovery_add
DOpenThread_Sim.py52 def __init__(self, ip, port, username, password, device, node_id): argument
54 self.port = int(port)
75 self.log('Connecting to %s:%s with username=%s', self.ip, self.port, self.username)
76 … self.__handle.connect(self.ip, port=self.port, username=self.username, password=self.password)
167 self.telnetIp = self.port = discovery_add
/openthread-3.5.0/tests/scripts/thread-cert/
Dfind_border_agents.py44 port = None variable in BorderAgent
51 return str([self.alias, self.addr, self.port, self.thread_status])
77 ba.port = record.port
DCert_5_3_11_AddressQueryTimeoutIntervals.py152 filter_coap_request(ADDR_QRY_URI, port=MM).\
168 filter_coap_request(ADDR_NTF_URI, port=MM).\
189 filter_coap_request(ADDR_QRY_URI, port=MM).\
193 filter_coap_request(ADDR_QRY_URI, port=MM).\
DCert_5_3_09_AddressQuery.py223 filter_coap_request(ADDR_QRY_URI, port=MM).\
250 filter_coap_request(ADDR_QRY_URI, port=MM).\
254 filter_coap_request(ADDR_NTF_URI, port=MM).\
295 filter_coap_request(ADDR_QRY_URI, port=MM).\
309 filter_coap_request(ADDR_QRY_URI, port=MM).\
319 filter_coap_request(ADDR_NTF_URI, port=MM).\
DCert_5_3_10_AddressQuery.py225 filter_coap_request(ADDR_QRY_URI, port=MM).\
256 filter_coap_request(ADDR_QRY_URI, port=MM).\
260 filter_coap_request(ADDR_NTF_URI, port=MM).\
301 filter_coap_request(ADDR_QRY_URI, port=MM).\
316 filter_coap_request(ADDR_QRY_URI, port=MM).\
326 filter_coap_request(ADDR_NTF_URI, port=MM).\
DCert_5_3_03_AddressQuery.py205 filter_coap_request(ADDR_QRY_URI, port=MM).\
210 filter_coap_request(ADDR_NTF_URI, port=MM).\
247 filter_coap_request(ADDR_QRY_URI, port=MM).\
251 filter_coap_request(ADDR_NTF_URI, port=MM).\
323 filter_coap_request(ADDR_QRY_URI, port=MM).\
340 filter_coap_request(ADDR_QRY_URI, port=MM).\
DCert_5_1_05_RouterAddressTimeout.py115 filter_coap_ack(ADDR_SOL_URI, port=MM).\
194 filter_coap_request(ADDR_SOL_URI, port=MM).\
207 filter_coap_ack(ADDR_SOL_URI, port=MM).\
286 filter_coap_request(ADDR_SOL_URI, port=MM).\
299 filter_coap_ack(ADDR_SOL_URI, port=MM).\
/openthread-3.5.0/tools/harness-sniffer/
DOT_Sniffer.py41 self.port = kwargs.get('addressofDevice')
92 str(self.port.split(':')[0]),
94 str(self.port.split(':')[1]),
154 return self.port
/openthread-3.5.0/tests/scripts/thread-cert/pktverify/
Dpacket_filter.py380 def filter_coap_request(self, uri_path, port=None, confirmable=None, **kwargs): argument
390 assert port is None or isinstance(port, int), port
394 … (0 if confirmable else 1)) and (port is None or p.udp.dstport == port)), **kwargs)
396 def filter_coap_ack(self, uri_path, port=None, **kwargs): argument
406 assert port is None or isinstance(port, int), port
409 (port is None or p.udp.dstport == port)), **kwargs)
415 port: int = None,
419 f = filter_eth.filter_coap_request('/b/ba', port=port,
427 …def filter_backbone_query(self, target: str, *, eth_src: EthAddr, port: int = None) -> 'PacketFilt…
428 …return self.filter_eth_src(eth_src).filter_coap_request('/b/bq', port=port, confirmable=False).fil…
Dpacket_verifier.py324 dr = pkts.filter_wpan_src64(src64).filter_coap_request('/n/dr', port=MM).filter(
329 pkts.filter_backbone_query(dua, eth_src=sbbr_eth, port=BB).must_not_next()
334 '/n/dr', port=MM).must_next().must_verify('thread_nm.tlv.status == 0')
337 bq1 = pkts.filter_backbone_query(dua, eth_src=pbbr_eth, port=BB).must_next()
343 bq2 = pkts.filter_backbone_query(dua, eth_src=pbbr_eth, port=BB).must_next()
348 bq3 = pkts.filter_backbone_query(dua, eth_src=pbbr_eth, port=BB).must_next()
353 …pkts.filter_eth_src(pbbr_eth).filter_backbone_answer(dua, port=BB, confirmable=False).must_next().…
358 … PBBR_ETH=pbbr_eth).filter_backbone_answer(dua, port=BB).must_not_next()
/openthread-3.5.0/tools/otci/otci/
Dcommand_handlers.py220 def __init__(self, host, port, username, password, sudo): argument
224 self.__port = port
233 port=port,
288 def __init__(self, host, port): argument
292 self.__port = port
293 self.__adb = AdbDeviceTcp(host, port, default_transport_timeout_s=9.0)
/openthread-3.5.0/tools/harness-simulation/harness/Thread_Harness/Sniffer/
DSimSniffer.py216 def _encode_address_port(self, addr, port): argument
217 port = str(port)
219 return '[' + addr + ']:' + port
220 return addr + ':' + port
249 …SimSniffer(addressofDevice=self._encode_address_port(addr, port), channel=None) for addr, port in …
/openthread-3.5.0/tools/harness-simulation/posix/
Dlaunch_testbed.py66 def init_socket(ifname: str, group: str, port: int) -> socket.socket:
76 s.bind((group, port))
105 for port in ports:
108 'por': port,
113 def start_sniffer(addr: str, port: int, ot_path: str, max_nodes_num: int) -> subprocess.Popen:
/openthread-3.5.0/third_party/mbedtls/repo/include/mbedtls/
Dnet_sockets.h127 int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host, const char *port, int proto );
147 int mbedtls_net_bind( mbedtls_net_context *ctx, const char *bind_ip, const char *port, int proto );

1234