mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Return EACCES rather than ENOBUFS if ipfw blocks a packet on the
way out at layer 2. PR: 62385 Submitted by: Oleg Bulyzhin <oleg@rinet.ru> Approved by: luigi MFC after: 1 week
This commit is contained in:
parent
a82294d01c
commit
e790940191
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ ether_output_frame(struct ifnet *ifp, struct mbuf *m)
|
|||
if (ether_ipfw_chk(&m, ifp, &rule, 0) == 0) {
|
||||
if (m) {
|
||||
m_freem(m);
|
||||
return ENOBUFS; /* pkt dropped */
|
||||
return EACCES; /* pkt dropped */
|
||||
} else
|
||||
return 0; /* consumed e.g. in a pipe */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue