diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2004-02-15 21:27:27 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2004-02-15 21:27:27 +0000 |
commit | 58ec0542c4a24ea5bccb8b2b1e32a4ff49e58cb7 (patch) | |
tree | 21a3f18e0d8dfc6f17d7d4db7b5b48e3f1cb6804 | |
parent | 824c230543eae3766e5a429669e3b8fe19fa8e73 (diff) | |
download | FreeBSD-src-58ec0542c4a24ea5bccb8b2b1e32a4ff49e58cb7.zip FreeBSD-src-58ec0542c4a24ea5bccb8b2b1e32a4ff49e58cb7.tar.gz |
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
-rw-r--r-- | sys/net/if_ethersubr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 7af66b3..835f5dc 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -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 */ } |