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

📄 zl5011xpacketrxtemplates.h

📁 Zalink50114----TDMoIP芯片驱动源码
💻 H
📖 第 1 页 / 共 5 页
字号:
      /* length no calc */
      ZL5011X_FALSE,

      /* two byte length */
      ZL5011X_TRUE
   },

/****************************************************************************/
/* protocol ZL5011X_IP_UDP_RTP_PW_ALT 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,       50,   51,   52,   53 },
      /* classify mask */
      { 0x00, 0x00, 0x00, 0x00,     0x00, 0x00, 0x00, 0x00,     0x00, 0x00, 0x00, 0x00 },

      /* VLAN classify positions - which of the extract classify bytes to use */
      { 0xff, 0xff },

      /* CD classify positions - which of the extract classify bytes to use */
      { 0xff, 0xff },

      /* extract check bytes */
      {   54,   16,   17,    0,        0,    0,    0,    0,        0,    0,    0 },
      /* check mask */
      { 0x0f, 0x00, 0x00, 0xff,     0xff, 0xff, 0xff, 0xff,     0xff, 0xff, 0xff },

      /* VLAN check positions - which of the extract check bytes to use */
      {    9,   10 },

      /* 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,

      /* length no calc */
      ZL5011X_FALSE,

      /* two byte length */
      ZL5011X_TRUE
   },

/****************************************************************************/
/* protocol ZL5011X_IP_UDP_L2TPV2_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 */

         /* L2TP Header */
                     0x1f, 0xff,    0xff, 0xff, 0xff, 0xff,    /* 42 to 47 */
         0xff, 0xff,                                           /* 48 to 49 */

         /* PW Header */
                     0xff, 0xff,    0xff, 0xff,                /* 50 to 53 */

         /* Unused 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,       46,   47,   48,   49 },
      /* classify mask */
      { 0x00, 0x00, 0x00, 0x00,     0x00, 0x00, 0x00, 0x00,     0x00, 0x00, 0x00, 0x00 },

      /* VLAN classify positions - which of the extract classify bytes to use */
      { 0xff, 0xff },

      /* CD classify positions - which of the extract classify bytes to use */
      { 0xff, 0xff },

      /* extract check bytes */
      {   16,   17,   50,    0,        0,    0,    0,    0,        0,    0,    0 },
      /* check mask */
      { 0x00, 0x00, 0x0f, 0xff,     0xff, 0xff, 0xff, 0xff,     0xff, 0xff, 0xff },

      /* VLAN check positions - which of the extract check bytes to use */
      { 9, 10 },

      /* L2TPv3 Cookie check positions */
      { 0xff, 0xff, 0xff, 0xff },

      /* PW byte position */
      50,

      /* extract seq bytes */
      { 53, 52 },

      /* extract timestamp bytes */
      { 0, 0, 0, 0 },

      /* 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_L2TPV3_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 */

         /* l2tp header */
                     0xff, 0xff,    0xff, 0xff,                /* 34 to 37 */

         /* Pseudo Wire Header */
                                                0xff, 0xff,    /* 38 to 39 */
         0xff, 0xff,                                           /* 40 to 41 */

         /* Unused header */
                     0xff, 0xff,    0xff, 0xff, 0xff, 0xff,    /* 42 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,       16,   17,    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 */
      {   38,    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 */
      {    7,    8,    9,   10 },

      /* PW byte position */
      38,

      /* extract seq bytes */
      { 41, 40 },

      /* extract timestamp bytes */
      { 0, 0, 0, 0 },

      /* extract length bytes */
      { 17, 16 },

      /* timestamp shift */
      0,

      /* seq number length 2 bytes */
      ZL5011X_TRUE,

      /* length modifier */
      28,

      /* length no calc */
      ZL5011X_FALSE,

      /* two byte length */
      ZL5011X_TRUE
   },

/****************************************************************************/
/* protocol ZL5011X_IP_L2TPV3_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 */

         /* 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 */

         /* L2TP header */
                     0xff, 0xff,    0xff, 0xff,                /* 34 to 37 */

         /* RTP Header */
                                                0x1f, 0x00,    /* 38 to 39 */
         0xff, 0xff, 0xff, 0xff,    0xff, 0xff, 0xff, 0xff,    /* 40 to 47 */
         0xff, 0xff,                                           /* 48 to 49 */

         /* Pseudo Wire Header */
                     0xff, 0xff,    0xff, 0xff,                /* 50 to 53 */

         /* Unused 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,       16,   17,    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,   46,   47,   48,       49,    0,    0,    0,        0,    0,    0 },
      /* check mask */
      { 0x0f, 0x00, 0x00, 0x00,     0x00, 0xff, 0xff, 0xff,     0xff, 0xff, 0xff },

      /* VLAN check positions - which of the extract check bytes to use */
      { 0xff, 0xff },

      /* L2TPv3 Cookie check positions */
      {    7,    8,    9,   10 },

      /* PW byte position */
      50,

      /* extract seq bytes */
      { 41, 40 },

      /* extract timestamp bytes */
      { 45, 44, 43, 42 },

      /* extract length bytes */
      { 17, 16 },

      /* timestamp shift */
      0,

⌨️ 快捷键说明

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