mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 20:09:02 +00:00
Optimize BPF to capture only DHCP responses
This commit is contained in:
@@ -236,7 +236,7 @@ action = function()
|
||||
|
||||
local sock, co
|
||||
sock = nmap.new_socket()
|
||||
sock:pcap_open(iface, 1500, false, "ip && udp && port 68")
|
||||
sock:pcap_open(iface, 1500, false, "ip && udp dst port 68")
|
||||
co = stdnse.new_thread( dhcp_listener, sock, iface, macaddr, timeout, xid, result )
|
||||
threads[co] = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user