robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23.45k stars 3.06k forks source link

PF_RING Bad Address #96

Open dadrian opened 10 years ago

dadrian commented 10 years ago

I'm trying to test massscan on a 10GigE card being driven by PF_RING, but I get the following error:

pfring: 'dna1': ENABLE ERROR: Bad address
adapter[dna1].init: failed

My command is sudo ./bin/masscan -c scan.conf

$ cat scan.conf
rate = 100000000
output-format = list
output-filename = scan.out
ports = 80
range = 0.0.0.0-255.255.255.255
adapter = dna1
adapter-ip = 141.212.121.200
router-mac = 66-55-44-33-22-11
adapter-mac = A0-36-9F-23-AB-22
exclude-file = excludefile.txt
robertdavidgraham commented 10 years ago

I'm not sure how pfring_enable_ring() function call can ever fail. All the sample code I see on the Internet doesn't check the return code. Try editing line 716 of masscan/src/rawsock.c and ignore checking the return code, and see if this helps.