Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update modules/auxiliary/scanner/discovery/ipv6_neighbor.rb
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>
- Loading branch information
b66fb88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smcintyre-r7, Please note getreply() already includes 0.1s sleep. So it appears the job of the code below line 77 is to handle responses to the most recent probes. In the worst case scenario the responses will get buffered in pcap socket buffer (up to 2MB by default in Linux I think) and that buffer will be processed by the loop starting at line 80. Unless I miss something, there is absolutely no reason to make etime dependent on number of host. But there is a disadvantage - in case of 1000 hosts this will result in completely pointless and arbitrary 50s delay.
I have just noticed this implementation line, maybe we should do the same (fixed configurable timeout) in ipv6 module?