1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +00:00

Spellcheck: common misspellings in the entire source tree

This commit is contained in:
dmiller
2014-02-21 21:10:51 +00:00
parent 3f5e909e8f
commit ddcfa8cc90
38 changed files with 52 additions and 52 deletions

View File

@@ -338,26 +338,26 @@ int UDPHeader::setTotalLength(){
* here because UDP is supposed to be independent of IPv4, IPv6 or
* whatever other network layer protocol is used to carry the UDP datagrams.*/
if ((mylen+otherslen) > 65535 || (mylen+otherslen)<8 ){
printf("UDPHeader::setTotalLenght(): Invalid length.\n");
printf("UDPHeader::setTotalLength(): Invalid length.\n");
return OP_FAILURE;
}
h.uh_ulen=htons( mylen+otherslen );
return OP_SUCCESS;
} /* End of setTotalLenght() */
} /* End of setTotalLength() */
/** @warning Supplied value MUST be in HOST byte order */
int UDPHeader::setTotalLength(u16 l){
this->h.uh_ulen=htons(l);
return OP_SUCCESS;
} /* End of setTotalLenght() */
} /* End of setTotalLength() */
/** @warning Returned value is in HOST byte order */
u16 UDPHeader::getTotalLength() const {
return ntohs(this->h.uh_ulen);
} /* End of getTotalLenght() */
} /* End of getTotalLength() */