1 /******************************************************************************* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 * 21 * Copyright 2014 QLogic Corporation 22 * The contents of this file are subject to the terms of the 23 * QLogic End User License (the "License"). 24 * You may not use this file except in compliance with the License. 25 * 26 * You can obtain a copy of the License at 27 * http://www.qlogic.com/Resources/Documents/DriverDownloadHelp/ 28 * QLogic_End_User_Software_License.txt 29 * See the License for the specific language governing permissions 30 * and limitations under the License. 31 * 32 * 33 * Module Description: 34 * 35 * 36 * 37 ******************************************************************************/ 38 39 40 /* The dest MAC address of GVRP is 01-80-C2-00-00-21 */ 41 #define IS_GVRP_ADDR(_addr) \ 42 (((_addr)[0] == 0x01) && ((_addr)[1] == 0x80) && ((_addr)[2] == 0xC2) && ((_addr)[3] == 0x00) && ((_addr)[4] == 0x00) && ((_addr)[5] == 0x21)) 43 44 45 /* The dest MAC address of LACP is 01-80-C2-00-00-02 */ 46 #define IS_LACP_ADDR(_addr) \ 47 (((_addr)[0] == 0x01) && ((_addr)[1] == 0x80) && ((_addr)[2] == 0xC2) && ((_addr)[3] == 0x00) && ((_addr)[4] == 0x00) && ((_addr)[5] == 0x02)) 48 49 50