Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/usr.sbin Pull up file removal (requested by itojun in t...
details: https://anonhg.NetBSD.org/src/rev/e359dfa3e1c5
branches: netbsd-1-6
changeset: 529650:e359dfa3e1c5
user: he <he%NetBSD.org@localhost>
date: Sat Dec 07 00:35:15 2002 +0000
description:
Pull up file removal (requested by itojun in tickets #886, #887, #888):
Move mrouted out of basesrc, as it carries a non-BSD
license.
[itojun, tickets #886, #887, #888]
diffstat:
usr.sbin/map-mbone/Makefile | 11 -
usr.sbin/map-mbone/map-mbone.8 | 91 -
usr.sbin/map-mbone/mapper.c | 1050 ------------------
usr.sbin/mrinfo/Makefile | 13 -
usr.sbin/mrinfo/mrinfo.8 | 85 -
usr.sbin/mrinfo/mrinfo.c | 656 -----------
usr.sbin/mrouted/LICENSE | 48 -
usr.sbin/mrouted/Makefile | 13 -
usr.sbin/mrouted/callout.c | 228 ---
usr.sbin/mrouted/cfparse.y | 655 -----------
usr.sbin/mrouted/config.c | 146 --
usr.sbin/mrouted/defs.h | 323 -----
usr.sbin/mrouted/dvmrp.h | 173 ---
usr.sbin/mrouted/igmp.c | 357 ------
usr.sbin/mrouted/inet.c | 229 ---
usr.sbin/mrouted/kern.c | 240 ----
usr.sbin/mrouted/main.c | 737 ------------
usr.sbin/mrouted/mrouted.8 | 404 -------
usr.sbin/mrouted/pathnames.h | 22 -
usr.sbin/mrouted/prune.c | 2304 ----------------------------------------
usr.sbin/mrouted/prune.h | 150 --
usr.sbin/mrouted/route.c | 1160 --------------------
usr.sbin/mrouted/route.h | 50 -
usr.sbin/mrouted/rsrr.c | 501 --------
usr.sbin/mrouted/rsrr.h | 140 --
usr.sbin/mrouted/rsrr_var.h | 43 -
usr.sbin/mrouted/snmp.c | 1288 ----------------------
usr.sbin/mrouted/snmp.h | 9 -
usr.sbin/mrouted/vif.c | 1483 -------------------------
usr.sbin/mrouted/vif.h | 77 -
usr.sbin/mtrace/Makefile | 14 -
usr.sbin/mtrace/mtrace.8 | 516 --------
usr.sbin/mtrace/mtrace.c | 1835 -------------------------------
33 files changed, 0 insertions(+), 15051 deletions(-)
diffs (truncated from 15183 to 300 lines):
diff -r 04002a94990b -r e359dfa3e1c5 usr.sbin/map-mbone/Makefile
--- a/usr.sbin/map-mbone/Makefile Sat Dec 07 00:35:12 2002 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-# $NetBSD: Makefile,v 1.5 1997/10/25 06:58:20 lukem Exp $
-# from: Id: Makefile,v 1.5 1993/06/24 05:11:16 deering Exp
-
-.PATH: ${.CURDIR}/../mrouted
-CPPFLAGS+= -I${.CURDIR}/../mrouted
-
-PROG= map-mbone
-SRCS= igmp.c inet.c kern.c mapper.c
-MAN= map-mbone.8
-
-.include <bsd.prog.mk>
diff -r 04002a94990b -r e359dfa3e1c5 usr.sbin/map-mbone/map-mbone.8
--- a/usr.sbin/map-mbone/map-mbone.8 Sat Dec 07 00:35:12 2002 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,91 +0,0 @@
-.\" $NetBSD: map-mbone.8,v 1.3 2002/01/19 03:26:30 wiz Exp $
-.\"
-.TH MAP-MBONE 8
-.UC 5
-.SH NAME
-map-mbone \- Multicast connection mapper
-.SH SYNOPSIS
-.B /usr/sbin/map-mbone
-[
-.B \-d
-.I debug_level
-] [
-.B \-f
-] [
-.B \-g
-] [
-.B \-n
-] [
-.B \-r
-.I retry_count
-] [
-.B \-t
-.I timeout_count
-] [
-.B starting_router
-]
-.SH DESCRIPTION
-.I map-mbone
-attempts to display all multicast routers that are reachable from the multicast
-.I starting_router.
-If not specified on the command line, the default multicast
-.I starting_router
-is the localhost.
-.PP
-.I map-mbone
-traverses neighboring multicast routers by sending the ASK_NEIGHBORS IGMP
-message to the multicast starting_router. If this multicast router responds,
-the version number and a list of their neighboring multicast router addresses is
-part of that response. If the responding router has recent multicast version
-number, then
-.I map-mbone
-requests additional information such as metrics, thresholds, and flags from the
-multicast router. For each new occurrence of neighboring multicast router in
-the reply and provided the flooding option has been selected, then
-.I map-mbone
-asks each of this multicast router for a list of neighbors. This search
-for unique routers will continue until no new neighboring multicast routers
-are reported.
-.br
-.ne 5
-.SH INVOCATION
-.PP
-"\-d" option sets the debug level. When the debug level is greater than the
-default value of 0, addition debugging messages are printed. Regardless of
-the debug level, an error condition, will always write an error message and will
-cause
-.I map-mbone
-to terminate.
-Non-zero debug levels have the following effects:
-.IP "level 1"
-packet warnings are printed to stderr.
-.IP "level 2"
-all level 1 messages plus notifications down networks are printed to stderr.
-.IP "level 3"
-all level 2 messages plus notifications of all packet
-timeouts are printed to stderr.
-.PP
-"\-f" option sets flooding option. Flooding allows the recursive search
-of neighboring multicast routers and is enable by default when starting_router
-is not used.
-.PP
-"\-g" option sets graphing in GraphEd format.
-.PP
-"\-n" option disables the DNS lookup for the multicast routers names.
-.PP
-"\-r retry_count" sets the neighbor query retry limit. Default is 1 retry.
-.PP
-"\-t timeout_count" sets the number of seconds to wait for a neighbor query
-reply before retrying. Default timeout is 2 seconds.
-.PP
-.SH IMPORTANT NOTE
-.I map-mbone
-must be run as root.
-.PP
-.SH SEE ALSO
-.BR mrouted (8) ,
-.BR mrinfo (8) ,
-.BR mtrace (8)
-.PP
-.SH AUTHOR
-Pavel Curtis
diff -r 04002a94990b -r e359dfa3e1c5 usr.sbin/map-mbone/mapper.c
--- a/usr.sbin/map-mbone/mapper.c Sat Dec 07 00:35:12 2002 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1050 +0,0 @@
-/* $NetBSD: mapper.c,v 1.8.2.1 2002/06/04 11:56:40 lukem Exp $ */
-
-/* Mapper for connections between MRouteD multicast routers.
- * Written by Pavel Curtis <Pavel%PARC.Xerox.Com@localhost>
- */
-
-/*
- * Copyright (c) 1992, 2001 Xerox Corporation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * Neither name of the Xerox, PARC, nor the names of its contributors may be used
- * to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE XEROX CORPORATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <string.h>
-#include <netdb.h>
-#include <sys/time.h>
-#include "defs.h"
-#include <arpa/inet.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
-#define DEFAULT_TIMEOUT 2 /* How long to wait before retrying requests */
-#define DEFAULT_RETRIES 1 /* How many times to ask each router */
-
-
-/* All IP addresses are stored in the data structure in NET order. */
-
-typedef struct neighbor {
- struct neighbor *next;
- u_int32_t addr; /* IP address in NET order */
- u_char metric; /* TTL cost of forwarding */
- u_char threshold; /* TTL threshold to forward */
- u_short flags; /* flags on connection */
-#define NF_PRESENT 0x8000 /* True if flags are meaningful */
-} Neighbor;
-
-typedef struct interface {
- struct interface *next;
- u_int32_t addr; /* IP address of the interface in NET order */
- Neighbor *neighbors; /* List of neighbors' IP addresses */
-} Interface;
-
-typedef struct node {
- u_int32_t addr; /* IP address of this entry in NET order */
- u_int32_t version; /* which mrouted version is running */
- int tries; /* How many requests sent? -1 for aliases */
- union {
- struct node *alias; /* If alias, to what? */
- struct interface *interfaces; /* Else, neighbor data */
- } u;
- struct node *left, *right;
-} Node;
-
-
-Node *routers = 0;
-u_int32_t our_addr, target_addr = 0; /* in NET order */
-int debug = 0;
-int retries = DEFAULT_RETRIES;
-int timeout = DEFAULT_TIMEOUT;
-int show_names = TRUE;
-vifi_t numvifs; /* to keep loader happy */
- /* (see COPY_TABLES macro called in kern.c) */
-
-Node * find_node __P((u_int32_t addr, Node **ptr));
-Interface * find_interface __P((u_int32_t addr, Node *node));
-Neighbor * find_neighbor __P((u_int32_t addr, Node *node));
-int main __P((int argc, char *argv[]));
-void ask __P((u_int32_t dst));
-void ask2 __P((u_int32_t dst));
-int retry_requests __P((Node *node));
-char * inet_name __P((u_int32_t addr));
-void print_map __P((Node *node));
-char * graph_name __P((u_int32_t addr, char *buf));
-void graph_edges __P((Node *node));
-void elide_aliases __P((Node *node));
-void graph_map __P((void));
-int get_number __P((int *var, int deflt, char ***pargv,
- int *pargc));
-u_int32_t host_addr __P((char *name));
-
-#ifdef __STDC__
-void log(int severity, int syserr, const char *format, ...)
- __attribute__((__format__(__printf__, 3, 4)));
-#endif
-
-Node *find_node(addr, ptr)
- u_int32_t addr;
- Node **ptr;
-{
- Node *n = *ptr;
-
- if (!n) {
- *ptr = n = (Node *) malloc(sizeof(Node));
- n->addr = addr;
- n->version = 0;
- n->tries = 0;
- n->u.interfaces = 0;
- n->left = n->right = 0;
- return n;
- } else if (addr == n->addr)
- return n;
- else if (addr < n->addr)
- return find_node(addr, &(n->left));
- else
- return find_node(addr, &(n->right));
-}
-
-
-Interface *find_interface(addr, node)
- u_int32_t addr;
- Node *node;
-{
- Interface *ifc;
-
- for (ifc = node->u.interfaces; ifc; ifc = ifc->next)
- if (ifc->addr == addr)
- return ifc;
-
- ifc = (Interface *) malloc(sizeof(Interface));
- ifc->addr = addr;
- ifc->next = node->u.interfaces;
- node->u.interfaces = ifc;
- ifc->neighbors = 0;
-
- return ifc;
-}
-
-
-Neighbor *find_neighbor(addr, node)
- u_int32_t addr;
- Node *node;
-{
- Interface *ifc;
-
- for (ifc = node->u.interfaces; ifc; ifc = ifc->next) {
- Neighbor *nb;
-
- for (nb = ifc->neighbors; nb; nb = nb->next)
- if (nb->addr == addr)
- return nb;
- }
-
- return 0;
-}
-
-
-/*
- * Log errors and other messages to stderr, according to the severity of the
- * message and the current debug level. For errors of severity LOG_ERR or
- * worse, terminate the program.
- */
-#ifdef __STDC__
-void
-log(int severity, int syserr, const char *format, ...)
-#else
-/*VARARGS3*/
-void
-log(severity, syserr, format, va_alist)
- int severity, syserr;
- char *format;
Home |
Main Index |
Thread Index |
Old Index