Skip to content

Commit a05013c

Browse files
authored
Fix neighsol timeout not actually used (#4310)
1 parent 42b98a2 commit a05013c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/layers/inet6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def neighsol(addr, src, iface, timeout=1, chainCC=0):
117117
p = Ether(dst=dm, src=sm) / IPv6(dst=d, src=src, hlim=255)
118118
p /= ICMPv6ND_NS(tgt=addr)
119119
p /= ICMPv6NDOptSrcLLAddr(lladdr=sm)
120-
res = srp1(p, type=ETH_P_IPV6, iface=iface, timeout=1, verbose=0,
120+
res = srp1(p, type=ETH_P_IPV6, iface=iface, timeout=timeout, verbose=0,
121121
chainCC=chainCC)
122122

123123
return res

0 commit comments

Comments
 (0)