From matt@braithwaite.net Thu Jul 19 15:44:02 2001 Return-Path: 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) Sender: matt@braithwaite.net To: FreeBSD-gnats-submit@freebsd.org Cc: matt@braithwaite.net Subject: add `no_rip_out' option to routed X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 29090 >Category: bin >Synopsis: add `no_rip_out' option to routed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 19 15:50:01 PDT 2001 >Closed-Date: Sun Apr 07 10:01:37 PDT 2002 >Last-Modified: Sun Apr 07 10:01:37 PDT 2002 >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: State-Changed-From-To: open->closed State-Changed-By: asmodai State-Changed-When: Sun Apr 7 10:01:24 PDT 2002 State-Changed-Why: Committed, thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=29090 >Unformatted: