mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
Implement Evil bit option in Nping. Fixes #2486
This commit is contained in:
@@ -184,6 +184,8 @@ class NpingOps {
|
||||
bool mf_set;
|
||||
bool df; /* Don't fragment flag */
|
||||
bool df_set;
|
||||
bool rf; /* Reserved / Evil flag */
|
||||
bool rf_set;
|
||||
u32 mtu; /* Custom MTU len (for IP fragmentation) */
|
||||
bool mtu_set;
|
||||
bool badsum_ip; /* Generate invalid checksums in TCP/UDP */
|
||||
@@ -433,6 +435,10 @@ class NpingOps {
|
||||
bool getDF();
|
||||
bool issetDF();
|
||||
|
||||
int setRF();
|
||||
bool getRF();
|
||||
bool issetRF();
|
||||
|
||||
struct in_addr getIPv4SourceAddress();
|
||||
int setIPv4SourceAddress(struct in_addr i);
|
||||
bool issetIPv4SourceAddress();
|
||||
|
||||
Reference in New Issue
Block a user