Re: vlan: update vlan carrier state for admin up/down

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jay Vosburgh
Date: Friday, April 24, 2009 - 5:31 pm

Ben Greear <greearb@candelatech.com> wrote:


	Yes, with the patch applied, it does.


	I dunno if it's a security issue, but I'd agree it's wrong.  I
looked, and I suspect that a couple of judiciously placed "if
(dev->flags & IFF_UP)" bits ought to sort things out by simply not
copying the carrier state to the upper level VLAN device if that device
is down.  Unless somebody works this up over the weekend, I'll work that
out on Monday.

	When the vlan device (eth0.5 in the above example) later is set
up, it'll do the right thing for its own carrier state.


	Would they actually need a flag, or could it be worked out just
by checking their IFF_UP-ness?

	-J

---
	-Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
vlan: update vlan carrier state for admin up/down, Patrick McHardy, (Fri Apr 24, 8:44 am)
Re: vlan: update vlan carrier state for admin up/down, Jay Vosburgh, (Fri Apr 24, 5:31 pm)
Re: vlan: update vlan carrier state for admin up/down, David Miller, (Sat Apr 25, 6:06 pm)
Re: vlan: update vlan carrier state for admin up/down, Ben Greear, (Sun Apr 26, 12:58 pm)
Re: vlan: update vlan carrier state for admin up/down, Jay Vosburgh, (Mon Apr 27, 4:55 pm)
Re: vlan: update vlan carrier state for admin up/down, David Miller, (Mon Apr 27, 6:36 pm)
Re: vlan: update vlan carrier state for admin up/down, Ben Greear, (Thu Apr 30, 12:48 am)
Re: vlan: update vlan carrier state for admin up/down, Patrick McHardy, (Tue May 5, 5:41 am)