?? zl5011xpacketrxtemplates.h
字號:
ZL5011X_FALSE,
/* two byte length */
ZL5011X_TRUE
},
/****************************************************************************/
/* protocol ZL5011X_IP_UDP_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 */
/* 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 */
/* UDP Header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 34 to 39 */
0xff, 0xff, /* 40 to 41 */
/* PW Header */
0xff, 0xff, 0xff, 0xff, /* 42 to 45 */
/* Unused bytes */
0xff, 0xff, /* 46 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, 34, 35, 36, 37, 17, 16, 0, 0 },
/* classify mask */
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 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 */
{ 42, 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 */
42,
/* extract seq bytes */
{ 45, 44 },
/* extract timestamp bytes */
{ 0, 0, 0, 0 },
/* extract length bytes */
{ 17, 16 },
/* timestamp shift */
0,
/* seq number length 2 bytes */
ZL5011X_TRUE,
/* length modifier */
32,
/* length no calc */
ZL5011X_FALSE,
/* two byte length */
ZL5011X_TRUE
},
/****************************************************************************/
/* protocol ZL5011X_IP_UDP_CD 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 */
/* udp header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 34 to 39 */
0xff, 0xff, /* 40 to 41 */
/* CD header */
0x1f, 0xff, /* 42 to 43 */
/* unused header */
0xff, 0xff, 0xff, 0xff, /* 44 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, 34, 35, 36, 37, 0, 0, 0, 0 },
/* classify mask */
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 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 */
{ 8, 9 },
/* extract check bytes */
{ 16, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* check mask */
{ 0x00, 0x00, 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 */
0,
/* extract seq bytes */
{ 0, 0 },
/* extract timestamp bytes */
{ 0, 0, 0, 0 },
/* extract length bytes */
{ 17, 16 },
/* timestamp shift */
0,
/* seq number length 2 bytes */
ZL5011X_TRUE,
/* length modifier */
30,
/* length no calc */
ZL5011X_FALSE,
/* two byte length */
ZL5011X_TRUE
},
/****************************************************************************/
/* protocol ZL5011X_IP_UDP_RTP 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 */
/* IPv4 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 */
/* UDP header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 34 to 39 */
0xff, 0xff, /* 40 to 41 */
/* RTP header */
0x1f, 0x00, 0xff, 0xff, 0xff, 0xff, /* 42 to 47 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 48 to 53 */
/* END OF PROTOCOL HEADER */
0xff, 0xff, /* 54 to 55 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, /* 56 to 63 */
/* extract classify bytes */
{ 26, 27, 28, 29, 34, 35, 36, 37, 17, 16, 0, 0 },
/* classify mask */
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 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 */
{ 50, 51, 52, 53, 0, 0, 0, 0, 0, 0, 0 },
/* check mask */
{ 0x00, 0x00, 0x00, 0x00, 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 */
0,
/* extract seq bytes */
{ 45, 44 },
/* extract timestamp bytes */
{ 49, 48, 47, 46 },
/* extract length bytes */
{ 17, 16 },
/* timestamp shift */
0,
/* seq number length 2 bytes */
ZL5011X_TRUE,
/* length modifier */
40,
/* length no calc */
ZL5011X_FALSE,
/* two byte length */
ZL5011X_TRUE
},
/****************************************************************************/
/* protocol ZL5011X_IP_UDP_RTP_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 */
/* IPv4 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 */
/* UDP header */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 34 to 39 */
0xff, 0xff, /* 40 to 41 */
/* RTP header */
0x1f, 0x00, 0xff, 0xff, 0xff, 0xff, /* 42 to 47 */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 48 to 53 */
/* PW header */
0xff, 0xff, /* 54 to 55 */
0xff, 0xff, /* 56 to 57 */
/* END OF PROTOCOL HEADER */
0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, /* 58 to 63 */
/* extract classify bytes */
{ 26, 27, 28, 29, 34, 35, 36, 37, 17, 16, 0, 0 },
/* classify mask */
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 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 */
{ 50, 51, 52, 53, 54, 0, 0, 0, 0, 0, 0 },
/* check mask */
/* 由于檢測SSRC ,而SSRC最后一個字節就是index,就要求兩端index必須相同,非常
* 別扭,因此修改MASK,不Check最后一個Byte*/
{ 0x00, 0x00, 0x00, /*0x00*/0xff, 0x0f, 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 */
54,
/* extract seq bytes */
{ 45, 44 },
/* extract timestamp bytes */
{ 49, 48, 47, 46 },
/* extract length bytes */
{ 17, 16 },
/* timestamp shift */
0,
/* seq number length 2 bytes */
ZL5011X_TRUE,
/* length modifier */
44,
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -