⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 llclib.h

📁 基于vxworks操作系统,Tornado2.0平台,生成树STP源码.直接在其对应的设备中添加即可.
💻 H
字号:
/* llcLib.h - Link Layer Control to MUX library routines *//* Copyright 1998-2000 Wind River Systems, Inc. *//* Copyright 1998-1999 Wind River Systems, Inc. *//*modification history--------------------00e,18mar01,kw  Added the LACP support.00d,03nov00,kw  Added the IGMP Snooping support.00c,03mar10,kw  Change name to llcLib.h00b,28oct99,kw  Change name to llc2Mux.h00a,14Jul99,gkw Written.*//*DESCRIPTION:   Definitions for the LLC MUX function, which allows multiple link layer    control protocols to use the underlying network END driver.*/#ifndef __INCllcLibh#define __INCllcLibh#ifdef __cplusplusextern "C" {#endif /* __cplusplus *//* * The individual link layer control protocol IDs (from the 802.1D/D17 spec). */#define STP_PROTOCOL		0x0000		/* spanning tree protocol ID	   */#define GARP_PROTOCOL		0x0001		/* GARP protocol ID				   */#ifndef IGMP_PROTOCOL#define IGMP_PROTOCOL       0x0002      /* IGMP Protocol ID                */#endif /* IGMP_PROTOCOL */#define IP_PROTO_OFFSET     23          /* 24 bytes from start of packet.  *//* * The policies for handling the source MAC address for link layer control * protocol frames. */#define DEFAULT_MAC_ADDR	0	/* Host MAC sent as source on all ports		*/#define LOCAL_ADMIN_ADDR	1	/* Same as "default," but set LA bit		*/#define INCREMENT_ADDR		2	/* Increment host MAC according to port #	*/#define LLPDU_SOURCE_ADDR	LOCAL_ADMIN_ADDR							/* The link layer control protocol MAC policy	*/#define STP_ETHER_TYPE		0x0042      /* Used for Sending a packet.       */#define GARP_ETHER_TYPE     0x0043      /* Used for Sending a packet.       */#define GMRP_ETHER_TYPE		0x2042      /* Protocol Type for Receives       */#define GVRP_ETHER_TYPE		0x2142      /* Protocol Type for Receives       */#define IGMP_SNOOP_TYPE     0x0242      /* IGMP Snooping                    */#define LACP_ETHER_TYPE     0x8809      /* LACP                             */ulong_t	llcProtoGet( M_BLK_ID pMblk, ulong_t * type, ulong_t qtag_size );#ifdef __cplusplus}#endif /* __cplusplus */#endif /* __INCllcLibh */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -