This website requires JavaScript.
Explore
Help
Sign In
PenTest
/
nmap
Watch
1
Star
0
Fork
0
You've already forked nmap
mirror of
https://github.com/nmap/nmap.git
synced
2025-12-28 10:29:03 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
50368778655eb90fa834413a4152367e2f8eb929
nmap
/
scan_engine.cc
kris
5036877865
Remove some duplication in get_pcap_result() in scan_engine.cc. probe->protocol() is all ready checked against ip2->ip_p earlier (the two I'm removing indirectly check against ip2->ip_p: look at the removed part and what ip2->ip_p is tested against in the surrounding if()s). Then a little lower in the function, that whole if() block can be removed because it's the same as what's done in that switch() block. The same error() and hdump() are used in the default case. I could've kept the if(), but this keeps is simple.
2007-02-02 02:33:20 +00:00
140 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink