[border-router] fix UDP forwarding issue to infrastructure link (#7082)

This commit is contained in:
Simon Lin
2021-10-28 00:20:53 -07:00
committed by GitHub
parent 5282232e27
commit 05e59ade17
4 changed files with 167 additions and 17 deletions
+2 -2
View File
@@ -2513,12 +2513,12 @@ class NodeImpl:
payload += tlv.to_hex()
self.commissioner_mgmtset(self.bytes_to_hex_str(payload))
def udp_start(self, local_ipaddr, local_port):
def udp_start(self, local_ipaddr, local_port, bind_unspecified=False):
cmd = 'udp open'
self.send_command(cmd)
self._expect_done()
cmd = 'udp bind %s %s' % (local_ipaddr, local_port)
cmd = 'udp bind %s %s %s' % ("-u" if bind_unspecified else "", local_ipaddr, local_port)
self.send_command(cmd)
self._expect_done()