From 98b4107ee9f1ecc89b8387b0bb8186cc30b8ad28 Mon Sep 17 00:00:00 2001 From: Zhaohui Sun Date: Thu, 19 May 2022 06:45:07 +0000 Subject: [PATCH] Increase timeout for sniffing option 82 packets Signed-off-by: Zhaohui Sun --- ansible/roles/test/files/ptftests/py3/dhcp_relay_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/test/files/ptftests/py3/dhcp_relay_test.py b/ansible/roles/test/files/ptftests/py3/dhcp_relay_test.py index e4a558eec88..474ef4c1293 100644 --- a/ansible/roles/test/files/ptftests/py3/dhcp_relay_test.py +++ b/ansible/roles/test/files/ptftests/py3/dhcp_relay_test.py @@ -438,7 +438,7 @@ def pkt_callback(self, pkt): self.verified_option82 = True def Sniffer(self,iface): - scapy2.sniff(iface=iface, filter="udp and (port 67 or 68)",prn=self.pkt_callback, store=0, timeout=3) + scapy2.sniff(iface=iface, filter="udp and (port 67 or 68)",prn=self.pkt_callback, store=0, timeout=5) # Verify that the DHCP relay actually received and relayed the DHCPDISCOVER message to all of