?? llclib.h
字號(hào):
/* 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 */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -