Skip to content

Commit

Permalink
Fix neighsol timeout not actually used (#4310)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdibi committed Mar 7, 2024
1 parent 42b98a2 commit a05013c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scapy/layers/inet6.py
Expand Up @@ -117,7 +117,7 @@ def neighsol(addr, src, iface, timeout=1, chainCC=0):
p = Ether(dst=dm, src=sm) / IPv6(dst=d, src=src, hlim=255)
p /= ICMPv6ND_NS(tgt=addr)
p /= ICMPv6NDOptSrcLLAddr(lladdr=sm)
res = srp1(p, type=ETH_P_IPV6, iface=iface, timeout=1, verbose=0,
res = srp1(p, type=ETH_P_IPV6, iface=iface, timeout=timeout, verbose=0,
chainCC=chainCC)

return res
Expand Down

0 comments on commit a05013c

Please sign in to comment.