LACP frames must not be send VLAN-tagged, check for that before processing.

PR:		kern/156743
Submitted by:	Dmitrij Tejblum
MFC after:	1 week
This commit is contained in:
Andrew Thompson 2011-04-30 20:34:52 +00:00
parent c989b08beb
commit 627cecc5c9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221270

View file

@ -1794,7 +1794,7 @@ lagg_lacp_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m)
etype = ntohs(eh->ether_type);
/* Tap off LACP control messages */
if (etype == ETHERTYPE_SLOW) {
if ((m->m_flags & M_VLANTAG) == 0 && etype == ETHERTYPE_SLOW) {
m = lacp_input(lp, m);
if (m == NULL)
return (NULL);