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:
Michael Tuexen 2024-02-16 12:19:24 +01:00
parent 307daa4f17
commit 8b2c694d38
2 changed files with 2 additions and 0 deletions

View file

@ -13809,6 +13809,7 @@ nomore:
return (error);
}
case EPERM:
case EACCES:
tp->t_softerror = error;
/* FALLTHROUGH */
case EHOSTDOWN:

View file

@ -22371,6 +22371,7 @@ nomore:
sendalot = 0;
switch (error) {
case EPERM:
case EACCES:
tp->t_softerror = error;
#ifdef TCP_ACCOUNTING
crtsc = get_cyclecount();