Fix some typos, one in output. IPPROTO_TCP -> IPPROTO_IP (2), extre -> extra, /etc/protocol -> /etc/protocols

This commit is contained in:
kris 2007-01-19 01:39:03 +00:00
parent 0a4e660bdd
commit 928750ce05
4 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -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");
}

View file

@ -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.

View file

@ -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.