Date: Wed, 10 Jan 2001 21:27:48 -0500 (EST) From: bicknell@ufp.org To: FreeBSD-gnats-submit@freebsd.org Subject: conf/24239: rc.conf ipv6 missing options Message-ID: <200101110227.f0B2RmI04791@ussenterprise.ufp.org>
next in thread | raw e-mail | index | archive | help
>Number: 24239 >Category: conf >Synopsis: rc.conf ipv6 missing options >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: Wed Jan 10 18:30:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Leo Bicknell >Release: FreeBSD 4.2-RELEASE i386 >Organization: >Environment: FreeBSD ussenterprise.ufp.org 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Fri Jan 5 14:05:35 EST 2001 root@ussenterprise.ufp.org:/usr/src/sys/compile/USSENTERPRISE i386 >Description: In /etc/rc.conf is documented the manual configuration for IPv6: #ipv6_ifconfig_ed0="fec0:0:0:5::1 prefixlen 64" # Sample alias entry Unfortunately, this does not allow you to configure multiple aliases, like the IPv4 code does. The code should also support variables like: #ipv6_ifconfig_ed0_alias0="fec0:0:0:5::2 prefixlen 64" # Sample alias entry #ipv6_ifconfig_ed0_alias1="fec0:0:0:5::3 prefixlen 64" # Sample alias entry And so on. >How-To-Repeat: Not really anything to repeat, now is there. :-) >Fix: Borrowing from the code that is in /etc/rc.network (v4) to create a v6 example I recomend replacing this v6 code in /etc/rc.network6: network6_interface_setup() { [snip] for i in $ipv6_network_interfaces; do [snip] eval ipv6_ifconfig=\$ipv6_ifconfig_$i if [ -n "${ipv6_ifconfig}" ]; then rtsol_available=no rtsol_interface=no ifconfig $i inet6 ${ipv6_ifconfig} alias fi With something more along these lines: # Check to see if aliases need to be added # alias=0 while : ; do eval ifconfig_args=\$ipv6_ifconfig_${ifn}_alias${alias} if [ -n "${ifconfig_args}" ]; then if [ -n "${ipv6_ifconfig}" ]; then rtsol_available=no rtsol_interface=no ifconfig ${ifn} inet6 ${ifconfig_args} alias alias=`expr ${alias} + 1` fi else break; fi done I'm not sure I'm doing the right things with the "rtsol_available" and "rtsol_interface", or that there aren't other things that should be done, so consider this an example only. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101110227.f0B2RmI04791>