mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
RACK, BBR: handle EACCES like EPERM for IP output handling
The FreeBSD TCP base stack handles them also the same way. In case of packet filters dropping packets in the output path, this avoids retranmitting the dropped packet every 10ms or so. Reviewed by: rscheff Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43773 (cherry picked from commit 2f4e46dfdd710c6679f233480c9de430e6c4ef9b)
This commit is contained in:
parent
307daa4f17
commit
8b2c694d38
2 changed files with 2 additions and 0 deletions
|
|
@ -13809,6 +13809,7 @@ nomore:
|
|||
return (error);
|
||||
}
|
||||
case EPERM:
|
||||
case EACCES:
|
||||
tp->t_softerror = error;
|
||||
/* FALLTHROUGH */
|
||||
case EHOSTDOWN:
|
||||
|
|
|
|||
|
|
@ -22371,6 +22371,7 @@ nomore:
|
|||
sendalot = 0;
|
||||
switch (error) {
|
||||
case EPERM:
|
||||
case EACCES:
|
||||
tp->t_softerror = error;
|
||||
#ifdef TCP_ACCOUNTING
|
||||
crtsc = get_cyclecount();
|
||||
|
|
|
|||
Loading…
Reference in a new issue