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:
David Malone 2004-02-15 21:27:27 +00:00
parent a82294d01c
commit e790940191

View File

@ -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 */
}