From owner-freebsd-bugs Thu Jul 19 15:50:20 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C6D3437B407 for ; Thu, 19 Jul 2001 15:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6JMo2035359; Thu, 19 Jul 2001 15:50:02 -0700 (PDT) (envelope-from gnats) Received: from limekiller.braithwaite.net (foo82.dsl.alink.net [207.135.112.82]) by hub.freebsd.org (Postfix) with ESMTP id 2931837B403 for ; Thu, 19 Jul 2001 15:44:02 -0700 (PDT) (envelope-from matt@braithwaite.net) Received: by limekiller.braithwaite.net (Postfix, from userid 1001) id E12975AB3; Thu, 19 Jul 2001 15:44:01 -0700 (PDT) Message-Id: <20010719224401.E12975AB3@limekiller.braithwaite.net> Date: Thu, 19 Jul 2001 15:44:01 -0700 (PDT) From: mab@red-bean.com (Matthew Braithwaite) To: FreeBSD-gnats-submit@freebsd.org Cc: matt@braithwaite.net X-Send-Pr-Version: 3.113 Subject: bin/29090: add `no_rip_out' option to routed Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29090 >Category: bin >Synopsis: add `no_rip_out' option to routed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 19 15:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Matthew Braithwaite >Release: FreeBSD 4.3-RELEASE i386 >Organization: Red Bean Software >Environment: >Description: routed permits you to turn off input (but not output) on an interface. For symmetry, it'd be nice to be able to turn off output, but not input. The attached patch does this. Note that interfaces marked `no_rip_out' are not completely silent. They will respond to queries and they will transmit a RIP request on startup. They will not, however, broadcast or multicast periodic updates. >How-To-Repeat: >Fix: Index: sbin/routed/parms.c =================================================================== RCS file: /home/mab/cvs/freebsd/sbin/routed/parms.c,v retrieving revision 1.1.1.2 diff -c -r1.1.1.2 parms.c *** sbin/routed/parms.c 2000/08/30 19:41:29 1.1.1.2 --- sbin/routed/parms.c 2001/07/19 22:38:53 *************** *** 712,717 **** --- 712,720 ---- } else if (PARS("no_super_ag")) { parm.parm_int_state |= IS_NO_SUPER_AG; + + } else if (PARS("no_rip_out")) { + parm.parm_int_state |= IS_NO_RIP_OUT; } else if (PARS("no_ripv1_in")) { parm.parm_int_state |= IS_NO_RIPV1_IN; Index: sbin/routed/routed.8 =================================================================== RCS file: /home/mab/cvs/freebsd/sbin/routed/routed.8,v retrieving revision 1.1.1.2 diff -c -r1.1.1.2 routed.8 *** sbin/routed/routed.8 2000/08/30 19:41:30 1.1.1.2 --- sbin/routed/routed.8 2001/07/19 22:38:53 *************** *** 593,598 **** --- 593,600 ---- to act as a client router discovery daemon, not advertising. .It Cm no_rip_mcast causes RIPv2 packets to be broadcast instead of multicast. + .It Cm no_rip_out + causes no RIP updates to be sent. .It Cm no_ripv1_in causes RIPv1 received responses to be ignored. .It Cm no_ripv2_in >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message