aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_disc.c
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1996-10-07 19:11:55 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1996-10-07 19:11:55 +0000
commit011acecf50abcc8558578b7ea41cde935c455ef0 (patch)
tree9b1f3c2199a7e9ca4c4ab9d518b2f38e61a59f5e /sys/net/if_disc.c
parent6d6a026b47e40c850fdf39d78135c269e1ce3e55 (diff)
downloadsrc-011acecf50abcc8558578b7ea41cde935c455ef0.tar.gz
src-011acecf50abcc8558578b7ea41cde935c455ef0.zip
Remove some historical cruft inherited from the loopback driver in which
there were three possible different code paths through which we could discard a packet (which, after all, is the entire function of this interface).
Notes
Notes: svn path=/head/; revision=18796
Diffstat (limited to 'sys/net/if_disc.c')
-rw-r--r--sys/net/if_disc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/net/if_disc.c b/sys/net/if_disc.c
index ee080414ffa1..cbc0a6ede864 100644
--- a/sys/net/if_disc.c
+++ b/sys/net/if_disc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* From: @(#)if_loop.c 8.1 (Berkeley) 6/10/93
- * $Id: if_disc.c,v 1.12 1996/04/07 17:39:03 bde Exp $
+ * $Id: if_disc.c,v 1.13 1996/06/10 23:07:29 gpalmer Exp $
*/
/*
@@ -147,11 +147,6 @@ dsoutput(ifp, m, dst, rt)
#endif
m->m_pkthdr.rcvif = ifp;
- if (rt && rt->rt_flags & (RTF_REJECT|RTF_BLACKHOLE)) {
- m_freem(m);
- return (rt->rt_flags & RTF_BLACKHOLE ? 0 :
- rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH);
- }
ifp->if_opackets++;
ifp->if_obytes += m->m_pkthdr.len;