mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Do not call icmp_error() if ipfirewall(4) denied packet.
PR: kern/10747, kern/18382
This commit is contained in:
parent
0e2e66b060
commit
3a06e3e02c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60612
@ -1649,6 +1649,10 @@ ip_forward(m, srcrt)
|
||||
type = ICMP_SOURCEQUENCH;
|
||||
code = 0;
|
||||
break;
|
||||
|
||||
case EACCES: /* ipfw denied packet */
|
||||
m_freem(mcopy);
|
||||
return;
|
||||
}
|
||||
icmp_error(mcopy, type, code, dest, destifp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user