[cli] add hex string payload for udp send (#4241)

This commit is contained in:
Rongli Sun
2019-10-24 10:33:08 -07:00
committed by Jonathan Hui
parent ed8c9f18df
commit eac27c0f45
6 changed files with 126 additions and 40 deletions
+1 -1
View File
@@ -1062,7 +1062,7 @@ class Node:
self._expect('Done')
def udp_send(self, bytes, ipaddr, port, success=True):
cmd = 'udp send -s %d %s %d' % (bytes, ipaddr, port)
cmd = 'udp send %s %d -s %d ' % (ipaddr, port, bytes)
self.send_command(cmd)
if success:
self._expect('Done')