亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? zl5011xpktpassthru.c

?? Zalink50114----TDMoIP芯片驅動源碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
               packetTxSetHeader.queueNum = par->upLinkQueueNum;
            }
            else
            {  /* Second flow transmits on downlink port */
               packetTxSetHeader.portNum = par->downLinkPort;
               packetTxSetHeader.queueNum = par->downLinkQueueNum;
            }
            status = zl5011xPacketTxSetHeader(zl5011xParams, &packetTxSetHeader);
         }
      }

      /* Update all the packet-to-packet contexts */
      {
         zl5011xContextS        contextStruct;

         if (status == ZL5011X_OK)
         {
            status = zl5011xLanLanContextUpdateStructInit(zl5011xParams,
                                                &contextStruct);
         }
         /* Set parameters */
         if (status == ZL5011X_OK)
         {
            contextStruct.osExclusionEnable = ZL5011X_FALSE;  /* OS exclusion, if enabled, has already been done */
            contextStruct.context = par->context[i];
            status = zl5011xLanLanContextUpdate(zl5011xParams, &contextStruct);
         }
      }
   }

   if (gotDevice == ZL5011X_TRUE)
   {
      if (status == ZL5011X_OK)
      {
         status = zl5011xReleaseDevice(zl5011xParams);
      }
      else
      {
         /* already have an error code, so don't overwrite it */
         (void)zl5011xReleaseDevice(zl5011xParams);
      }
   }

   return status;
}


/*******************************************************************************

 Function:
    zl5011xDeletePktToPktPassthruStructInit

 Description:
   Initialises structure used by functions zl5011xDeletePktToPktPassthru

 Inputs:
   zl5011xParams   Pointer to the structure for this device instance
   par            Pointer to the structure for configuration items.
                  See main function

 Returns:
   zlStatusE

 Remarks:

******************************************************************************/

zlStatusE zl5011xDeletePktToPktPassthruStructInit(zl5011xParamsS *zl5011xParams,
            zl5011xDeletePktToPktPassthruS *par)
{
   zlStatusE status = ZL5011X_OK;
   Sint32T i;

   ZL5011X_TRACE(ZL5011X_PACKET_FN_ID,"zl5011xDeletePktToPktPassthruStructInit:",0, 0, 0, 0, 0, 0);

   /* do some parameter checking */
   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

   if (status == ZL5011X_OK)
   {
      for (i = 0; i < ZL5011X_NUM_PKT_PKT_FLOWS; i++)
      {
         par->context[i] = (Uint32T)ZL5011X_INVALID_CONTEXT;   /* Contexts must be specifed by application */
      }
      par->osExclusionEnable = ZL5011X_TRUE;   /* Default to using OS exclusion when accessing the
                                                device from this function */
   }

   return status;
}

/*******************************************************************************

 Function:
    zl5011xDeletePktToPktPassthru

 Description:
   Deletes a previously established Packet-to-Packet flow.

 Structure inputs:
   context              The context numbers to delete. This will be the numbers that
                        were returned from the zl5011xCreatePktToPktPassthru function
                        in the "context" element of the parameter structure.
                        Default = none. Must be set by application
   osExclusionEnable    ZL5011X_TRUE to enable OS exclusion
                        Default = ZL5011X_TRUE

 Structure outputs:
   none

 Returns:
    status            Any valid error code

 Remarks:

*******************************************************************************/

zlStatusE zl5011xDeletePktToPktPassthru(zl5011xParamsS *zl5011xParams, zl5011xDeletePktToPktPassthruS *par)
{
   zlStatusE status = ZL5011X_OK;
   zl5011xBooleanE gotDevice;
   /* The hardware supports two classifier matches for each context. Packet-to-Packet contexts only use the first one */
   Uint32T currentHeader = 0;
   Uint16T classifyNum;  /* The classifier number assigned to this context */
   Uint8T protocolMatch; /* The protocol match for this classifier number */
   Sint32T i;

   /* do some parameter checking */
   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

   /* Obtain exclusive access to the device if required */
   if ((status == ZL5011X_OK) && (par->osExclusionEnable == ZL5011X_TRUE))
   {
     /* get access to the device */
     status = zl5011xGetDevice(zl5011xParams, ZL5011X_GET_DEVICE_TIMEOUT_MODE);

     if (status == ZL5011X_OK)
     {
         gotDevice = ZL5011X_TRUE;
     }
   }

   for (i = 0; (i < ZL5011X_NUM_PKT_PKT_FLOWS) && (status == ZL5011X_OK); i++)
   {
      /* Is this a Packet-to-Packet context? */
      if (status == ZL5011X_OK)
      {
         if (zl5011xParams->packetIf.lanLanContext[par->context[i]] == ZL5011X_FALSE)
         {  /* Not a packet-to-packet context */
            status = ZL5011X_CONTEXT_NOT_IN_USE;
         }
      }

      if (status == ZL5011X_OK)
      {
         /* Find the classifier number assigned to this context */
         classifyNum = zl5011xParams->packetIf.packetRx.contextRxPacketMatch[par->context[i]].pkcClassifyMatchNum[currentHeader];
         /* Find the protocol match used by this classifier number */
         protocolMatch = zl5011xParams->packetIf.packetRx.pkcClassify[classifyNum].classifyMatch.protocolMatchNum;
      }

      {
         /* Delete the packet to packet context */
         zl5011xContextDeleteS contextDelete;

         if (status == ZL5011X_OK)
         {
            status = zl5011xContextDeleteStructInit(zl5011xParams, &contextDelete);
         }
         if (status == ZL5011X_OK)
         {
            contextDelete.context = par->context[i];
            contextDelete.osExclusionEnable = ZL5011X_FALSE;
            status = zl5011xLanLanContextDelete(zl5011xParams, &contextDelete);
         }
      }

      /* Delete the packet to packet protocol match. */
      /* Since the same protocol match is used for all the passthru flows it will only
         actually be deleted when the final passthru context is deleted. */
      {
         zl5011xPacketRxDeleteProtocolMatchNumS packetRxDeleteProtocolMatchNum;

         if (status == ZL5011X_OK)
         {
            status = zl5011xPacketRxDeleteProtocolMatchNumStructInit(zl5011xParams, &packetRxDeleteProtocolMatchNum);
         }
         if (status == ZL5011X_OK)
         {
            packetRxDeleteProtocolMatchNum.protocolMatchNum = protocolMatch;
            packetRxDeleteProtocolMatchNum.osExclusionEnable = ZL5011X_FALSE;   /* Exclusion already performed */
            status = zl5011xPacketRxDeleteProtocolMatchNum(zl5011xParams, &packetRxDeleteProtocolMatchNum);
         }
      }
   }

   /* Release the device */
   if (gotDevice == ZL5011X_TRUE)
   {
      if (status == ZL5011X_OK)
      {
         status = zl5011xReleaseDevice(zl5011xParams);
      }
      else
      {
         /* already have an error code, so don't overwrite it */
         (void)zl5011xReleaseDevice(zl5011xParams);
      }
   }

   return status;
}

/******************************************************************************

 Function:
    zl5011xGetClassifierNumFromPriorityOrder

 Description:
   Returns the classifier number that is at the priority position specified.

   The classifier matches are compared in sets of 17 at a time. The set
   contains a number of matches which are not in consecutive number order.
   The first compare processes match numbers 0,16,32...256 and the second
   compare handles 1,17,33, etc.
   Within each compare set the classifier priority is in ascending numerical
   order.
   The compare operation for each set takes one clock cycle. The first set
   and first match to be found is the one that will be used.

   This function converts an absolute priority number into the actual
   classification match number at that priority position.

 Inputs:
   matchPriority   The priority number from which to determine the match
                   Range = 0(highest)-271(lowest priority),

 Returns:
   classifier number at this priority position.
                        Range = 0-271

 Remarks:
   The classifier number occupying priority position n is given by
   16 x (n mod 17) + int(n/17)

******************************************************************************/

Uint32T zl5011xGetClassifierNumFromPriorityOrder(Uint32T matchPriority)
{
   const Uint32T classifierGroupIncrement = 16; /* "Consecutive" classifier numbers
                        in each group increment by 16 */
   const Uint32T comparesInEachGroup = 17;

   return (classifierGroupIncrement * (matchPriority % comparesInEachGroup)) +
                  (matchPriority / comparesInEachGroup);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美高清激情brazzers| 日韩高清不卡一区| 国产aⅴ精品一区二区三区色成熟| 欧美欧美欧美欧美首页| 一区二区三区精品视频| 成人av网站在线| 中文字幕第一区第二区| 成人av电影在线| 国产精品无遮挡| 成+人+亚洲+综合天堂| 中文字幕永久在线不卡| 在线视频你懂得一区| 日韩黄色在线观看| 337p粉嫩大胆色噜噜噜噜亚洲| 国产一区不卡精品| 亚洲少妇最新在线视频| 欧美精品乱码久久久久久按摩| 紧缚奴在线一区二区三区| 国产免费观看久久| 在线成人av网站| 成人性生交大片免费看视频在线| 亚洲色图都市小说| 欧美一区二区三区在线电影| 国产精品资源在线| 亚洲一区二区三区在线播放| 精品国产乱码久久久久久蜜臀| av毛片久久久久**hd| 日韩精品午夜视频| 亚洲欧洲99久久| 欧美一级高清大全免费观看| 国产成+人+日韩+欧美+亚洲| 亚洲一区二区高清| 欧美国产日韩a欧美在线观看| 欧美性欧美巨大黑白大战| 极品尤物av久久免费看| 一区二区高清在线| 久久久噜噜噜久久人人看 | 91在线视频网址| 丝袜亚洲另类欧美| 一区在线播放视频| 精品理论电影在线| 欧美日韩你懂得| 99久久精品国产一区二区三区| 日韩电影免费一区| 亚洲免费伊人电影| 欧美国产激情一区二区三区蜜月| 欧美日韩一级二级| 97超碰欧美中文字幕| 国产精品综合一区二区三区| 午夜精品成人在线| 亚洲人成网站影音先锋播放| 久久久www免费人成精品| 欧美另类高清zo欧美| 91免费看`日韩一区二区| 激情综合色丁香一区二区| 亚洲国产精品久久艾草纯爱 | 欧美日韩精品久久久| 成人综合在线网站| 国产老女人精品毛片久久| 日本女优在线视频一区二区| 亚洲精选在线视频| 亚洲欧洲精品天堂一级 | 欧美成人女星排名| 制服丝袜中文字幕一区| 色丁香久综合在线久综合在线观看| 国产精品一线二线三线精华| 激情六月婷婷久久| 免费观看成人av| 日本sm残虐另类| 麻豆精品一二三| 免费观看日韩av| 久久69国产一区二区蜜臀 | 激情深爱一区二区| 蜜桃91丨九色丨蝌蚪91桃色| 青娱乐精品在线视频| 日本欧美在线观看| 麻豆高清免费国产一区| 日本aⅴ亚洲精品中文乱码| 热久久久久久久| 久久国产精品无码网站| 麻豆91免费观看| 狠狠色狠狠色综合系列| 国产老女人精品毛片久久| 床上的激情91.| 91一区一区三区| 欧美日韩一区二区三区不卡| 欧美日本高清视频在线观看| 欧美一级理论性理论a| 欧美一级理论片| 久久免费电影网| 国产精品色哟哟网站| 亚洲色图都市小说| 午夜精品福利一区二区蜜股av| 日韩va亚洲va欧美va久久| 国模一区二区三区白浆| 国产精品一级黄| 色综合天天视频在线观看| 欧洲一区二区三区在线| 91麻豆精品国产91久久久久 | 日韩精品久久久久久| 免费成人性网站| 国内精品第一页| 99re在线视频这里只有精品| 欧美视频在线观看一区| 欧美大片在线观看一区二区| 国产精品理论在线观看| 亚洲一区二区三区视频在线播放 | 99免费精品视频| 欧美三级视频在线播放| 日韩美女主播在线视频一区二区三区| 久久久一区二区| 亚洲三级在线看| 久久99久久99小草精品免视看| 成人免费视频国产在线观看| 欧美日韩高清一区二区不卡| 精品88久久久久88久久久| 亚洲欧美视频一区| 毛片av中文字幕一区二区| 91理论电影在线观看| 欧美电影免费提供在线观看| 中文字幕亚洲电影| 免费在线观看一区二区三区| 成人伦理片在线| 日韩免费高清电影| 一区二区三区欧美日韩| 国产成人在线免费观看| 欧美日韩免费不卡视频一区二区三区| 久久综合久色欧美综合狠狠| 亚洲午夜电影网| 成人免费视频caoporn| 666欧美在线视频| 亚洲精品中文在线影院| 激情av综合网| 亚洲人成在线播放网站岛国| 日本美女一区二区| 欧美艳星brazzers| 一区免费观看视频| 国产精品一二三四| 精品久久人人做人人爰| 亚洲高清在线视频| 99国产精品99久久久久久| 欧美精品一区二区高清在线观看| 亚洲1区2区3区视频| 色综合 综合色| 国产精品免费免费| 国产在线一区二区综合免费视频| 欧美精品久久久久久久久老牛影院| 亚洲婷婷综合色高清在线| 国产精品一区二区三区乱码| 日韩一区二区三| 日韩av一二三| 欧美日韩一区二区在线观看| 一区二区三区精密机械公司| 成人高清av在线| 国产清纯美女被跳蛋高潮一区二区久久w| 肉肉av福利一精品导航| 欧美午夜精品理论片a级按摩| 亚洲免费电影在线| 色综合色综合色综合| 自拍av一区二区三区| 99国产精品一区| 亚洲欧洲av在线| 色八戒一区二区三区| 亚洲男同性恋视频| 色国产精品一区在线观看| 亚洲精品欧美专区| 91黄色在线观看| 亚洲高清不卡在线观看| 欧美三级视频在线| 爽爽淫人综合网网站| 欧美三级电影在线观看| 偷窥国产亚洲免费视频| 欧美日韩不卡一区| 久久99蜜桃精品| 久久久久久影视| 成人听书哪个软件好| 亚洲私人影院在线观看| 欧美中文一区二区三区| 午夜精品久久久久久久久| 日韩欧美中文字幕精品| 国产自产高清不卡| 国产欧美一区二区精品性色| www.欧美日韩| 伊人开心综合网| 日韩一区二区在线免费观看| 激情国产一区二区| 国产精品午夜电影| 欧美色综合网站| 麻豆成人av在线| 中文字幕一区在线| 欧美精三区欧美精三区| 毛片av一区二区| 中文字幕亚洲一区二区av在线| 在线观看av一区二区| 久久精品国产免费| 日本一区二区三区四区在线视频| 色综合一个色综合亚洲| 麻豆91在线播放| 中文字幕字幕中文在线中不卡视频| 欧美亚日韩国产aⅴ精品中极品|