Subject: bin/9375: /etc/netstart /etc/rc still needs fixes for ip6mode
To: None <gnats-bugs@gnats.netbsd.org>
From: None <erik@mediator.uni-c.dk>
List: netbsd-bugs
Date: 02/08/2000 11:03:53
>Number:         9375
>Category:       bin
>Synopsis:       /etc/netstart /etc/rc still needs fixes for ip6mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb  8 11:03:00 2000
>Last-Modified:
>Originator:     Erik Bertelsen
>Organization:
	
>Release:        NetBSD-current 8 Feb 2000
>Environment:
	
System: NetBSD rlanarh108.uni-c.dk 1.4S NetBSD 1.4S (HJEMME) #305: Tue Feb 8 17:59:58 CET 2000 erik@rlanarh108.uni-c.dk:/home/src/sys/arch/macppc/compile/HJEMME macppc


>Description:
	In the transition from using ip6forwarding to using ip6mode,
	a few patches are still needed.

	In /etc/rc a checkyesno of the undefined ip6forwarding should be
	ip6mode=router. This spews a warning in the rtadvd=yes case.

	Finally there is a test of ip6forwarding in the non-IPv6 case that
	should be changed, possibly just deleted?
>How-To-Repeat:
	
>Fix:
*** /etc/rc	Tue Feb  8 19:51:22 2000
--- ./rc	Sun Feb  6 20:53:31 2000
***************
*** 513,519 ****
  fi
  
  if checkyesno rtadvd; then
! 	if test "x$ip6mode" = "xrouter"; then
  		echo -n ' rtadvd';	rtadvd $rtadvd_flags
  	else
  		echo
--- 513,519 ----
  fi
  
  if checkyesno rtadvd; then
! 	if checkyesno ip6forwarding; then
  		echo -n ' rtadvd';	rtadvd $rtadvd_flags
  	else
  		echo
*** /etc/netstart	Tue Feb  8 19:55:35 2000
--- ./netstart	Sun Feb  6 20:53:31 2000
***************
*** 261,267 ****
  else
  	# We do not have IPv6 support in kernel.
  	if checkyesno ip6forwarding || checkyesno rtsol; then
- 		# fix line above -- should not use ip6forwarding...
  		echo "WARNING: ip6 requested without kernel IPv6 config"
  	fi
  fi
--- 261,266 ----


best regards
Erik Bertelsen
ps: apoligies for having the diffs reversed, but you get the idea...
>Audit-Trail:
>Unformatted: