Subject: Re: gif(4) IFF_UP behavior change
To: Todd Vierling <tv@wasabisystems.com>
From: None <itojun@iijlab.net>
List: current-users
Date: 07/30/2001 00:13:01
>Another thing should probably be corrected ... Most other interfaces *do*
>set IFF_UP automatically when the native addresses (not tunnel addresses)
>are set.  I didn't see this happen with gif0, and it might be proper to
>change this to be uniform.

	SIOCSIFADDR?  what is the standard relationship with IFF_RUNNING?

	i can think of two codepath:

	/* case 1 */
	case SIOCSIFADDR:
		ifp->if_flags |= IFF_UP;
		break;

	/* case 2 */
	case SIOCSIFADDR:
		if (ifp->if_flags & IFF_RUNNING)
			ifp->if_flags |= IFF_UP;
		break;

itojun