mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Add a problematic TCP option to validateTCPhdr
This commit is contained in:
parent
ed604aedc7
commit
47ad1bf67c
1 changed files with 9 additions and 0 deletions
9
tcpip.cc
9
tcpip.cc
|
|
@ -1404,6 +1404,15 @@ static bool validateTCPhdr(u8 *tcpc, unsigned len) {
|
|||
optlen -= 10;
|
||||
tcpc += 10;
|
||||
break;
|
||||
case 14: /* Alternate checksum */
|
||||
/* Sometimes used for hardware checksum offloading
|
||||
* ftp://ftp.ucsd.edu/pub/csl/fastnet/faq.txt
|
||||
*/
|
||||
if (optlen < 3)
|
||||
return false;
|
||||
optlen -= 3;
|
||||
tcpc += 3;
|
||||
break;
|
||||
default:
|
||||
optlen--;
|
||||
tcpc++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue