diff options
author | mlaier <mlaier@FreeBSD.org> | 2005-09-27 18:10:43 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2005-09-27 18:10:43 +0000 |
commit | a42af632d87879621ea936244e0eb8a934e9054c (patch) | |
tree | 06d50385e76f077f148ab914f1e6e424fbea50a1 /sys/netinet/ip_dummynet.c | |
parent | ef35b51d9d50287690c02c0c566d37a0a97161db (diff) | |
download | FreeBSD-src-a42af632d87879621ea936244e0eb8a934e9054c.zip FreeBSD-src-a42af632d87879621ea936244e0eb8a934e9054c.tar.gz |
Remove bridge(4) from the tree. if_bridge(4) is a full functional
replacement and has additional features which make it superior.
Discussed on: -arch
Reviewed by: thompsa
X-MFC-after: never (RELENG_6 as transition period)
Diffstat (limited to 'sys/netinet/ip_dummynet.c')
-rw-r--r-- | sys/netinet/ip_dummynet.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c index 0f57afe..51a3ad6 100644 --- a/sys/netinet/ip_dummynet.c +++ b/sys/netinet/ip_dummynet.c @@ -79,7 +79,6 @@ #include <netinet/ip_var.h> #include <netinet/if_ether.h> /* for struct arpcom */ -#include <net/bridge.h> #include <netinet/ip6.h> /* for ip6_input, ip6_output prototypes */ #include <netinet6/ip6_var.h> @@ -488,27 +487,6 @@ transmit_event(struct dn_pipe *pipe) break; - case DN_TO_BDG_FWD : - /* - * The bridge requires/assumes the Ethernet header is - * contiguous in the first mbuf header. Insure this is true. - */ - if (BDG_LOADED) { - if (m->m_len < ETHER_HDR_LEN && - (m = m_pullup(m, ETHER_HDR_LEN)) == NULL) { - printf("dummynet/bridge: pullup fail, dropping pkt\n"); - break; - } - m = bdg_forward_ptr(m, pkt->ifp); - } else { - /* somebody unloaded the bridge module. Drop pkt */ - /* XXX rate limit */ - printf("dummynet: dropping bridged packet trapped in pipe\n"); - } - if (m) - m_freem(m); - break; - case DN_TO_ETH_DEMUX: /* * The Ethernet code assumes the Ethernet header is @@ -1175,7 +1153,6 @@ locate_flowset(int pipe_nr, struct ip_fw *rule) * m the mbuf with the packet * ifp the 'ifp' parameter from the caller. * NULL in ip_input, destination interface in ip_output, - * real_dst in bdg_forward * rule matching rule, in case of multiple passes * flags flags from the caller, only used in ip_output * |