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 /release | |
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 'release')
-rw-r--r-- | release/picobsd/bridge/PICOBSD | 2 | ||||
-rw-r--r-- | release/picobsd/tinyware/ns/ns.c | 56 |
2 files changed, 1 insertions, 57 deletions
diff --git a/release/picobsd/bridge/PICOBSD b/release/picobsd/bridge/PICOBSD index 5a2de48..1b6c50e 100644 --- a/release/picobsd/bridge/PICOBSD +++ b/release/picobsd/bridge/PICOBSD @@ -39,7 +39,7 @@ options IPDIVERT # divert (for natd) # Support for bridging and bandwidth limiting options DUMMYNET -options BRIDGE +device if_bridge options HZ=1000 #options NMBCLUSTERS=4096 diff --git a/release/picobsd/tinyware/ns/ns.c b/release/picobsd/tinyware/ns/ns.c index 777a7be..c6e58e2 100644 --- a/release/picobsd/tinyware/ns/ns.c +++ b/release/picobsd/tinyware/ns/ns.c @@ -52,12 +52,6 @@ #include <netinet/udp.h> #include <netinet/udp_var.h> -#ifdef BRIDGING -#include <net/if_types.h> /* IFT_ETHER */ -#include <net/ethernet.h> -#include <net/bridge.h> -#endif - #include <err.h> #include <errno.h> #include <osreldate.h> @@ -80,11 +74,7 @@ void usage() { fprintf(stderr, "\n%s [-nrsil] [-p proto] [-w wait]\n", progname); -#ifdef BRIDGING - fprintf(stderr, " proto: {ip|tcp|udp|icmp|bdg}\n\n"); -#else fprintf(stderr, " proto: {ip|tcp|udp|icmp}\n\n"); -#endif } @@ -720,19 +710,12 @@ stats(char *proto) print_udp_stats(); if (strcmp(proto, "tcp") == 0) print_tcp_stats(); -#ifdef BRIDGING - if (strcmp(proto, "bdg") == 0) - print_bdg_stats(); -#endif return (0); } print_ip_stats(); print_icmp_stats(); print_udp_stats(); print_tcp_stats(); -#ifdef BRIDGING - print_bdg_stats(); -#endif return (0); } @@ -844,42 +827,3 @@ print_load_stats(void) X(0), X(1), X(2), X(3), X(4) ); bcopy(new_cp_time, cp_time, sizeof(cp_time)); } - -#ifdef BRIDGING -/* print bridge statistics */ -int -print_bdg_stats() -{ - int i; - int mib[4]; - int slen; - struct bdg_stats s; - - slen = sizeof(s); - - mib[0] = CTL_NET; - mib[1] = PF_LINK; - mib[2] = IFT_ETHER; - mib[3] = PF_BDG; - if (sysctl(mib, 4, &s, &slen, NULL, 0) == -1) { - return 0; /* no bridging */ - } - printf("-- Bridging statistics --\n"); - printf( - "Name In Out Forward Drop Bcast" - "Mcast Local Unknown\n"); - for (i = 0; i < 16; i++) { - if (s.s[i].name[0]) - printf("%-6s %9d%9d%9d%9d%9d%9d%9d%9d\n", - s.s[i].name, - s.s[i].p_in[(int)BDG_IN], - s.s[i].p_in[(int)BDG_OUT], - s.s[i].p_in[(int)BDG_FORWARD], - s.s[i].p_in[(int)BDG_DROP], - s.s[i].p_in[(int)BDG_BCAST], - s.s[i].p_in[(int)BDG_MCAST], - s.s[i].p_in[(int)BDG_LOCAL], - s.s[i].p_in[(int)BDG_UNKNOWN]); - } -} -#endif |