1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 04:19:02 +00:00

Committing MTU-related changes:

* Adding path-mtu.nse for Path MTU Discovery
* Nmap now stores the MTU for interfaces (from SIOCGIFMTU or libdnet)
* Scripts can access the MTU for host.interface via host.interface_mtu
* Nmap prints the MTU for interfaces in --iflist
This commit is contained in:
kris
2010-08-24 01:47:12 +00:00
parent c3a1ec9f02
commit 57664a51cf
11 changed files with 459 additions and 5 deletions

View File

@@ -225,6 +225,9 @@ class Target {
next_hop has never been set */
bool nextHop(struct sockaddr_storage *next_hop, size_t *next_hop_len);
void setMTU(int devmtu);
int MTU(void);
/* Sets the interface type to one of:
devt_ethernet, devt_loopback, devt_p2p, devt_other
*/
@@ -318,7 +321,8 @@ class Target {
struct host_timeout_nfo htn;
devtype interface_type;
char devname[32];
char devfullname[32];
char devfullname[32];
int mtu;
/* 0 (OS_NOTPERF) if os detection not performed
* 1 (OS_PERF) if os detection performed
* 2 (OS_PERF_UNREL) if an unreliable os detection has been performed */