mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
do not send icmp response if the original packet is encrypted.
Obtained from: KAME MFC after: 1 week
This commit is contained in:
parent
be5318b2ca
commit
cad1917d48
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130183
@ -154,10 +154,13 @@ icmp_error(n, type, code, dest, destifp)
|
||||
if (type != ICMP_REDIRECT)
|
||||
icmpstat.icps_error++;
|
||||
/*
|
||||
* Don't send error if the original packet was encrypted.
|
||||
* Don't send error if not the first fragment of message.
|
||||
* Don't error if the old packet protocol was ICMP
|
||||
* error message, only known informational types.
|
||||
*/
|
||||
if (n->m_flags & M_DECRYPTED)
|
||||
goto freeit;
|
||||
if (oip->ip_off &~ (IP_MF|IP_DF))
|
||||
goto freeit;
|
||||
if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT &&
|
||||
|
Loading…
Reference in New Issue
Block a user