?? zl5011xpacketrxtemplates.h
字號:
/* seq number length 2 bytes */
ZL5011X_TRUE,
/* length modifier */
40,
/* length no calc */
ZL5011X_FALSE,
/* two byte length */
ZL5011X_TRUE
},
/****************************************************************************/
/* protocol ZL5011X_IP_PW_TS fields */
/****************************************************************************/
{
/* protocol Mask bytes */
{
/* ethernet header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 0 to 7 */
0xff, 0xff, 0xff, 0xff, 0x00, 0x00, /* 8 to 13 */
/* IP header */
0x0f, 0xff, /* 14 to 15 */
0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0x00, /* 16 to 23 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 24 to 31 */
0xff, 0xff, /* 32 to 33 */
/* PW header */
0xff, 0xff, 0xff, 0xff, /* 34 to 37 */
/* TS header = 16 bit timestamp field */
0xff, 0xff, /* 38 to 39 */
/* Unused Header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 40 to 47 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 48 to 55 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, /* 56 to 63 */
/* extract classify bytes */
{ 26, 27, 28, 29, 18, 19, 0, 0, 16, 17, 0, 0 },
/* classify mask */
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff },
/* VLAN classify positions - which of the extract classify bytes to use */
{ 10, 11 },
/* CD classify positions - which of the extract classify bytes to use */
{ 0xff, 0xff },
/* extract check bytes */
{ 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* check mask */
{ 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
/* VLAN check positions - which of the extract check bytes to use */
{ 0xff, 0xff },
/* L2TPv3 Cookie check positions */
{ 0xff, 0xff, 0xff, 0xff },
/* PW byte position */
34,
/* extract seq bytes */
{ 37, 36 },
/* extract timestamp bytes */
{ 39, 38, 0, 0 },
/* extract length bytes */
{ 17, 16 },
/* timestamp shift */
0,
/* seq number length 2 bytes */
ZL5011X_TRUE,
/* length modifier */
26,
/* length no calc */
ZL5011X_FALSE,
/* two byte length */
ZL5011X_TRUE
},
/****************************************************************************/
/* protocol ZL5011X_MPLS fields */
/****************************************************************************/
{
/* protocol Mask bytes */
{
/* ethernet header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 0 to 7 */
0xff, 0xff, 0xff, 0xff, 0x00, 0x00, /* 8 to 13 */
/* mpls header */
0xff, 0xff, /* 14 to 15 */
0xfe, 0xff, /* 16 to 17 */
/* unused header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 18 to 23 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 24 to 31 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 32 to 39 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 40 to 47 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 48 to 55 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, /* 56 to 63 */
/* extract classify bytes */
{ 14, 15, 16, 18, 33, 32, 31, 30, 25, 24, 23, 22 },
/* classify mask */
{ 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
/* VLAN classify positions - which of the extract classify bytes to use */
{ 10, 11 },
/* CD classify positions - which of the extract classify bytes to use */
{ 0xff, 0xff },
/* extract check bytes */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* check mask */
{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
/* VLAN check positions - which of the extract check bytes to use */
{ 0xff, 0xff },
/* L2TPv3 Cookie check positions */
{ 0xff, 0xff, 0xff, 0xff },
/* PW byte position */
18,
/* extract seq bytes */
{ 21, 20 },
/* extract timestamp bytes */
{ 29, 28, 27, 26 },
/* extract length bytes */
{ 0, 0 },
/* timestamp shift */
0,
/* seq number length 2 bytes */
ZL5011X_TRUE,
/* length modifier */
0,
/* length no calc */
ZL5011X_TRUE,
/* two byte length */
ZL5011X_TRUE
},
/****************************************************************************/
/* protocol ZL5011X_MPLS_PW fields */
/****************************************************************************/
{
/* protocol Mask bytes */
{
/* ethernet header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 0 to 7 */
0xff, 0xff, 0xff, 0xff, 0x00, 0x00, /* 8 to 13 */
/* mpls header */
0xff, 0xff, /* 14 to 15 */
0xfe, 0xff, /* 16 to 17 */
/* pw header */
0xff, 0xff, 0xff, 0xff, /* 18 to 21 */
/* unused header */
0xff, 0xff, /* 12 to 23 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 24 to 31 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 32 to 39 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 40 to 47 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 48 to 55 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, /* 56 to 63 */
/* extract classify bytes */
{ 14, 15, 16, 18, 33, 32, 31, 30, 25, 24, 23, 22 },
/* classify mask */
{ 0x00, 0x00, 0x0f, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
/* VLAN classify positions - which of the extract classify bytes to use */
{ 10, 11 },
/* CD classify positions - which of the extract classify bytes to use */
{ 0xff, 0xff },
/* extract check bytes */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* check mask */
{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
/* VLAN check positions - which of the extract check bytes to use */
{ 0xff, 0xff },
/* L2TPv3 Cookie check positions */
{ 0xff, 0xff, 0xff, 0xff },
/* PW byte position */
18,
/* extract seq bytes */
{ 21, 20 },
/* extract timestamp bytes */
{ 29, 28, 27, 26 },
/* extract length bytes */
{ 0, 0 },
/* timestamp shift */
0,
/* seq number length 2 bytes */
ZL5011X_TRUE,
/* length modifier */
0,
/* length no calc */
ZL5011X_TRUE,
/* two byte length */
ZL5011X_TRUE
},
/****************************************************************************/
/* protocol ZL5011X_MPLS_MPLS_PW fields */
/****************************************************************************/
{
/* protocol Mask bytes */
{
/* ethernet header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 0 to 7 */
0xff, 0xff, 0xff, 0xff, 0x00, 0x00, /* 8 to 13 */
/* mpls header */
0xff, 0xff, /* 14 to 15 */
0xfe, 0xff, /* 16 to 17 */
/* mpls header */
0xff, 0xff, 0xfe, 0xff, /* 18 to 21 */
/* pw header */
0xff, 0xff, /* 22 to 23 */
0xff, 0xff, /* 24 to 25 */
/* unused header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 26 to 31 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 32 to 39 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 40 to 47 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 48 to 55 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, /* 56 to 63 */
/* extract classify bytes */
{ 14, 15, 16, 18, 19, 20, 22, 0, 0, 0, 0, 0 },
/* classify mask */
{ 0x00, 0x00, 0x0f, 0x00, 0x00, 0x0f, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff },
/* VLAN classify positions - which of the extract classify bytes to use */
{ 10, 11 },
/* CD classify positions - which of the extract classify bytes to use */
{ 0xff, 0xff },
/* extract check bytes */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* check mask */
{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
/* VLAN check positions - which of the extract check bytes to use */
{ 0xff, 0xff },
/* L2TPv3 Cookie check positions */
{ 0xff, 0xff, 0xff, 0xff },
/* PW byte position */
22,
/* extract seq bytes */
{ 25, 24 },
/* extract timestamp bytes */
{ 0, 0, 0, 0 },
/* extract length bytes */
{ 0, 0 },
/* timestamp shift */
0,
/* seq number length 2 bytes */
ZL5011X_TRUE,
/* length modifier */
0,
/* length no calc */
ZL5011X_TRUE,
/* two byte length
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -