From owner-freebsd-hackers Sat May 13 14:58:54 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA13162 for hackers-outgoing; Sat, 13 May 1995 14:58:54 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id OAA13156 for ; Sat, 13 May 1995 14:58:50 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id OAA00869; Sat, 13 May 1995 14:57:55 -0700 From: "Rodney W. Grimes" Message-Id: <199505132157.OAA00869@gndrsh.aac.dev.com> Subject: Re: some small ideas To: graichen@sirius.physik.fu-berlin.de (Thomas Graichen) Date: Sat, 13 May 1995 14:57:55 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.org In-Reply-To: <9505131110.AA05882@sirius.physik.fu-berlin.de> from "Thomas Graichen" at May 13, 95 01:10:22 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 4828 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > * is it possible to include an option MULTICASTROUTE into the > sysconfig and netstart scripts to disable the multicast route > 224.0.0.0 or what it was - if think most people don't need it and it's > only confusing - why not beeing able to simply say YES or NO in > sysconfig to enable or disable it - i think the aim of /etc/sysconfig > should be that it is possible to configure the whole system only by > one file Here is my set of recent changes to put some more knobs on this, I copied what I did for ifconfig'ing interfaces to handle all of the ``route add'' commands. I also cleaned up the ifconfig for the loopback device, now under sysconfig control :-). Infact all of /etc/netstart should now be under sysconfig control! Could you please intergrate this into your /etc/ files, test it, and then send me back comments. An ASAP reply would mean this goes into the tree as soon as I read the reply. Index: netstart =================================================================== RCS file: /home/ncvs/src/etc/netstart,v retrieving revision 1.31 diff -c -r1.31 netstart *** 1.31 1995/05/11 21:11:14 --- netstart 1995/05/13 21:39:37 *************** *** 5,11 **** # Note that almost all the user-configurable behavior is no longer in # this file, but rather in /etc/sysconfig. Please check this file ! # first before contemplating any changes here. # If there is a global system configuration file, suck it in. if [ -f /etc/sysconfig ]; then --- 5,12 ---- # Note that almost all the user-configurable behavior is no longer in # this file, but rather in /etc/sysconfig. Please check this file ! # first before contemplating any changes here. If you do need to change ! # this file for some reason, we would like to know about it. # If there is a global system configuration file, suck it in. if [ -f /etc/sysconfig ]; then *************** *** 42,60 **** ifconfig ${ifn} done - # set the address for the loopback interface - ifconfig lo0 inet localhost - - # set interface for multicasts to default interface - # this needs to happen before router discovery - route add 224.0.0.0 -netmask 0xf0000000 -interface $hostname - if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then ! route add default $defaultrouter fi ! # use loopback, not the wire ! # route add $hostname localhost if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then echo -n starting routing daemons: --- 43,58 ---- ifconfig ${ifn} done if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then ! static_routes="${static_routes} default" ! route_default="default ${defaultrouter}" fi ! # Set up any static routes. This should be done before router discovery. ! for i in ${static_routes}; do ! eval route_args=\$route_${i} ! route add ${route_args} ! done if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then echo -n starting routing daemons: Index: sysconfig =================================================================== RCS file: /home/ncvs/src/etc/sysconfig,v retrieving revision 1.13 diff -c -r1.13 sysconfig *** 1.13 1995/05/13 20:16:11 --- sysconfig 1995/05/13 21:39:39 *************** *** 70,86 **** # tcp_extensions=YES # Set to the list of network devices on this host. You must have an # ifconfig_${network_interface} line for each interface listed here. # for example: ! #network_interfaces="ed0 sl0" ! # Set one for each network device listed in network_interfaces above. ! # for example: ! #ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00" ! #ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00" ! # Set to the host you'd like set as your default router, or NO of none. defaultrouter=NO # These are the flags you'd like to start the routing daemon with --- 70,96 ---- # tcp_extensions=YES + # # Set to the list of network devices on this host. You must have an # ifconfig_${network_interface} line for each interface listed here. # for example: ! # ! # network_interfaces="ed0 sl0 lo0" ! # ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00" ! # ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00" ! # ! network_interfaces="lo0" ! ifconfig_lo0="inet localhost" ! # ! # Set to the list of route add lines for this host. You must have a ! # route_${static_routes} line for each static route listed here. ! # ! static_routes="multicast loopback" ! route_multicast="224.0.0.0 -netmask 0xf0000000 -interface ${hostname}" ! route_loopback="${hostname} localhost" ! # Set to the host you'd like set as your default router, or NO for none. defaultrouter=NO # These are the flags you'd like to start the routing daemon with -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD