mirror of
https://github.com/nmap/nmap.git
synced 2026-09-01 07:52:57 +00:00
Fix some typos, one in output. IPPROTO_TCP -> IPPROTO_IP (2), extre -> extra, /etc/protocol -> /etc/protocols
This commit is contained in:
parent
0a4e660bdd
commit
928750ce05
4 changed files with 4 additions and 4 deletions
|
|
@ -118,7 +118,7 @@ class NmapOps {
|
|||
// The time this obj. was instantiated or last ReInit()ed.
|
||||
const struct timeval *getStartTime() { return &start_time; }
|
||||
// Number of milliseconds since getStartTime(). The current time is an
|
||||
// optional argument to avoid an extre gettimeofday() call.
|
||||
// optional argument to avoid an extra gettimeofday() call.
|
||||
int TimeSinceStartMS(struct timeval *now=NULL);
|
||||
struct in_addr v4source();
|
||||
const struct in_addr *v4sourceip();
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ static int nmap_protocols_init() {
|
|||
int res;
|
||||
|
||||
if (nmap_fetchfile(filename, sizeof(filename), "nmap-protocols") != 1) {
|
||||
error("Unable to find nmap-protocols! Resorting to /etc/protocol");
|
||||
error("Unable to find nmap-protocols! Resorting to /etc/protocols");
|
||||
strcpy(filename, "/etc/protocols");
|
||||
}
|
||||
|
||||
|
|
|
|||
2
tcpip.cc
2
tcpip.cc
|
|
@ -159,7 +159,7 @@ setsockopt(sd, IPPROTO_IP, IP_HDRINCL, (const char *) &one, sizeof(one));
|
|||
}
|
||||
|
||||
// Takes a protocol number like IPPROTO_TCP, IPPROTO_UDP, or
|
||||
// IPPROTO_TCP and returns a ascii representation (or "unknown" if it
|
||||
// IPPROTO_IP and returns a ascii representation (or "unknown" if it
|
||||
// doesn't recognize the number). If uppercase is true, the returned
|
||||
// value will be in all uppercase letters. You can skip this
|
||||
// parameter to use lowercase.
|
||||
|
|
|
|||
2
tcpip.h
2
tcpip.h
|
|
@ -725,7 +725,7 @@ int isipprivate(const struct in_addr * const addr);
|
|||
int unblock_socket(int sd);
|
||||
|
||||
// Takes a protocol number like IPPROTO_TCP, IPPROTO_UDP, or
|
||||
// IPPROTO_TCP and returns a ascii representation (or "unknown" if it
|
||||
// IPPROTO_IP and returns a ascii representation (or "unknown" if it
|
||||
// doesn't recognize the number). If uppercase is true, the returned
|
||||
// value will be in all uppercase letters. You can skip this
|
||||
// parameter to use lowercase.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue