<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Mar 18, 2025 at 1:41 PM Luca Vizzarro <<a href="mailto:luca.vizzarro@arm.com">luca.vizzarro@arm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
+    def _sniff(self, recv_port: Port):<br>
+        """Sniff packets and use events and queue to communicate with the main thread.<br>
+<br>
+        Raises:<br>
+            InteractiveSSHSessionDeadError: If the SSH connection has been unexpectedly interrupted.<br>
+        """<br>
+        ready_prompt = "Ready."<br>
+        self.send_command(<br>
+            "sniff("<br>
+            f'iface="{recv_port.logical_name}", quiet=True, store=False, '<br>
+            "prn=lambda p: bytes_base64(p.build()).decode(), "<br>
+            f'started_callback=lambda: print("{ready_prompt}")'<br>
+            ")",<br>
+            prompt=ready_prompt,<br>
+        )<br>
+        self._ssh_channel.settimeout(1)<br></blockquote><div><br></div><div>Not a big deal at all and I don't know what the "standard" is, but is there any reason why this number isn't higher? Like 10? I guess the point of the timeout is to protect against hanging, versus protect against slow operations (regardless of what the source of that slowness may be).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
-- <br>
2.43.0<br>
<br></blockquote><div><br></div><div>Reviewed-by: Patrick Robb <<a href="mailto:probb@iol.unh.edu">probb@iol.unh.edu</a>> </div></div></div>