From e790940191bd358e83b225dcc2ef6bd790e02254 Mon Sep 17 00:00:00 2001 From: David Malone Date: Sun, 15 Feb 2004 21:27:27 +0000 Subject: [PATCH] Return EACCES rather than ENOBUFS if ipfw blocks a packet on the way out at layer 2. PR: 62385 Submitted by: Oleg Bulyzhin Approved by: luigi MFC after: 1 week --- sys/net/if_ethersubr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 7af66b35545..835f5dcca47 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 */ }