| version 1.257, 2007/12/20 19:53:32 |
version 1.258, 2007/12/21 18:58:55 |
|
|
| * but it's not worth the time; just let them time out.) |
* but it's not worth the time; just let them time out.) |
| */ |
*/ |
| if (ip->ip_off & ~htons(IP_DF|IP_RF)) { |
if (ip->ip_off & ~htons(IP_DF|IP_RF)) { |
| |
uint16_t off; |
| |
/* |
| |
* Prevent TCP blind data attacks by not allowing non-initial |
| |
* fragments to start at less than 68 bytes (minimal fragment |
| |
* size). |
| |
*/ |
| |
off = htons(ip->ip_off) & ~(IP_DF|IP_EF|IP_MF); |
| |
if (off > 0 && off + hlen < IP_MINFRAGSIZE - 1) { |
| |
ipstat.ips_badfrags++; |
| |
goto bad; |
| |
} |
| /* |
/* |
| * Look for queue of fragments |
* Look for queue of fragments |
| * of this datagram. |
* of this datagram. |