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
@ -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…
x
Reference in New Issue
Block a user