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

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

?? defpolicy_ike.c

?? hifn ipsec固件下載工具
?? C
字號:
/****************************************************************************** Copyright (c) 2004 by Hifn, Inc, Los Gatos, CA, U.S.A. All Rights Reserved. This  software is furnished to licensee under a software license  agreement and may be used and copied only in accordance with the terms and conditions of such license and with the inclusion of the above Copyright Notice.  This software  or  any  other  copies  thereof may not be provided or  otherwise made  available  to any  other person.  No title to and  ownership  of  the software   is   hereby   transferred   and   licensee  is  subject  to  all confidentiality  provisions set forth in the  software  license  agreement. The information in this software is  subject to change without notice.*******************************************************************************/static char const tc_id[] = "$Id: @(#) defpolicy_ike.c 1.3@(#) $";/****************************************************************************** @file defpolicy_ike.c @brief SM policy tool. Simple tool for setting a simple policy. This creates a bypass policy (one of the simplest policies) as an example. The code here follows the example in Section 8.3 "Establishing Policies - A Primer" in "HIPP III Security Management API - Programmers Guide"  See section 8.3 and code in the program setpolicy for examples of more complex policies.*******************************************************************************//*------------------------------------ *//* Header Include                      *//*------------------------------------ *//* Standard includes */#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <strings.h>/* API specific includes */#include "hftc_pub_common.h"#include "hftc_pub_errors.h"#include "hftc_pub_sm.h"#include "hftc_pub_types.h"#include "hftc_pub_translate_enums.h"/*------------------------------------ *//* Constants and Types                 *//*------------------------------------ *//*------------------------------------ *//* External Variables                  *//*------------------------------------ *//*------------------------------------ *//* File-Scope Variables                *//*------------------------------------ *//*******************************//* Unit Number table variables *//*******************************/HFTC_Unit_t  unitNumber = 1;    /* unit number used in SM-API calls *//**************************************//* Policy Object Variables & Defaults *//**************************************//*   This is used to set the policy to by a bypass policy with priority 0.   Priority 0 is in the first location, and thus has the highest priority.   A value of HFTC_IPACTION_BYPASS makes this a bypass policy.*/uint32_t policyPriority   = 0;uint32_t policyAction     = HFTC_IPACTION_BYPASS;/*   These values represent the enpoints of the policy.  The src endpoint is   the local endpoint, and the dst endpoint is th destination IP address.   These endpoints are being set up with values of any, so the matching is   on the widest range of addresses, protocols and ports.  Note that if kind   is ANY the values are ignored.  So, if srcAddrKind is HFTC_IPADDRKIND_ANY   then the start and end mask are ignored, if dstProtocolKind is   HFTC_PROTOKIND_ANY then dstProtocol is ignored, etc.*/uint32_t srcAddrKind      = HFTC_IPADDRKIND_ANY;uint32_t srcAddrStart     = 0x00000000;uint32_t srcAddrEndMask   = 0xFFFFFFFF;uint32_t srcProtocolKind  = HFTC_PROTOKIND_ANY;uint32_t srcProtocol      = 0x00;uint32_t srcPortKind      = HFTC_PORTKIND_ANY;uint32_t srcPort          = 0x0000;uint32_t dstAddrKind      = HFTC_IPADDRKIND_ANY;uint32_t dstAddrStart     = 0x00000000;uint32_t dstAddrEndMask   = 0xFFFFFFFF;uint32_t dstProtocolKind  = HFTC_PROTOKIND_ANY;uint32_t dstProtocol      = 0x00;uint32_t dstPortKind      = HFTC_PORTKIND_ANY;uint32_t dstPort          = 0x0000;/*------------------------------------ *//* Local Function Prototypes           *//*------------------------------------ *//*------------------------------------ *//* Implementation                      *//*------------------------------------ *//*********************************************************************** *  defpolicy *********************************************************************** * @brief Simple SM policy object interfaces. * * @par Externals: *    See defaults at top of this file. * * @return *    HFTC_STATUS_OK * * @par Errors: *    None. * * @par Assumptions: *   None. * ***********************************************************************/HFTC_Status_t defpolicy(){   HFTC_Status_t        status      = HFTC_STATUS_OK;   HFTC_Reqid_t         reqid      = 0;   HFTC_Cbp_t           cbp        = NULL;   HFTC_Policy_t        policy;   do {      /********************/      /* Create a Policy */      /*******************/      /*         This creates a simple bypass policy.  The code here is modeled         after the code in setpolicy.c and section 8.3 Establishing Policies         - A Primer of "HIPP III Security Management API".  For more complex         policies, please refer to either of those places.         The steps to create a bypass policy are as follows:         1. Define or allocate a HFTC_Policy_t structure to hold the policy            attributes.  The policy here is called policy.         2. Set the fields as below.  The memset to zero is not nessesary,            but is still good practice, currently the fields that are not            set are ignored.         3. Call HFTC_SM_AddPolicyToSPD to add the policy.      */      memset(&policy, 0, sizeof(policy));      policy.action = policyAction;      /* Set up valid endpoints */      policy.sourceEP.IPaddr.IPaddrKind    = srcAddrKind;      policy.sourceEP.IPaddr.IPaddrStart   = srcAddrStart;      policy.sourceEP.IPaddr.IPaddrEndMask = srcAddrEndMask;      policy.sourceEP.protocolKind         = srcProtocolKind;      policy.sourceEP.protocol             = srcProtocol;      policy.sourceEP.portKind             = srcPortKind;      policy.sourceEP.port                 = srcPort;      policy.destEP.IPaddr.IPaddrKind    = dstAddrKind;      policy.destEP.IPaddr.IPaddrStart   = dstAddrStart;      policy.destEP.IPaddr.IPaddrEndMask = dstAddrEndMask;      policy.destEP.protocolKind         = dstProtocolKind;      policy.destEP.protocol             = dstProtocol;      policy.destEP.portKind             = dstPortKind;      policy.destEP.port                 = dstPort;      /*         The policy is being added here with polciyPriority.  A         policy priority value of 0, is in the first position, and thus has         the highest priority of all policies.  Since t his policy is a         bypass policy, no proposal set value is needed, the value is         ignored.  Writing this policy at location policyPriority will         overwrite any other policy that may be in that position.      */      status = HFTC_SM_AddPolicyToSPD(unitNumber, cbp, reqid,                                      policyPriority,                                      &policy, 0);      if (status != HFTC_STATUS_OK)      {         printf("ERROR: HFTC_SM_AddPolicyToSPD failed; "                "error status = %s (%d)\n",                 HFTC_Status_t_text(status), status);         break;      }   }   while (0);   return status;}  /* End defpolicy *//* ----------------------------------------------------------------------------   REV #    DATE     BY    REVISION DESCRIPTION   -----  --------  -----  ----------------------------------------------------   0001   06/23/05   msz   Created from setpolicy.c, and Section 8.3                           "Establishing Policies - A Primer" in HIPP III                           Security Management API - Programmers Guide.   0002   08/03/05   msz   Code review changes.   0003   08/22/06   msz   Print out status with text expansion.*-----------------------------------------------------------------------------*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区三区高清不卡| 裸体歌舞表演一区二区| 日日摸夜夜添夜夜添国产精品 | 欧美日韩日本视频| 久久一日本道色综合| 亚洲h动漫在线| 成人av在线一区二区| 精品日韩99亚洲| 亚洲午夜免费电影| 色av成人天堂桃色av| 久久综合久久综合久久| 日产国产高清一区二区三区| 日本道在线观看一区二区| 中文字幕高清不卡| 国精产品一区一区三区mba视频| 欧美老肥妇做.爰bbww视频| 亚洲欧洲99久久| 懂色av一区二区夜夜嗨| 精品粉嫩aⅴ一区二区三区四区| 日韩黄色在线观看| 欧美精品欧美精品系列| 亚洲国产中文字幕| 色哦色哦哦色天天综合| 一区二区三区美女| 91亚洲国产成人精品一区二三| 中文字幕av一区 二区| 成人午夜在线播放| 国产精品国产a| 91同城在线观看| 亚洲精品v日韩精品| 欧美性大战xxxxx久久久| 亚洲一区二区免费视频| 精品视频一区三区九区| 婷婷一区二区三区| 日韩欧美一级二级三级| 乱中年女人伦av一区二区| 欧美一级片免费看| 久久国产婷婷国产香蕉| 久久综合九色综合欧美就去吻| 久久精品国产精品亚洲红杏| 亚洲精品一区在线观看| 国产乱码精品一区二区三区av | 一区二区三区中文在线观看| 一本久道久久综合中文字幕| 亚洲另类在线制服丝袜| 欧美性做爰猛烈叫床潮| 日韩av不卡一区二区| 日韩精品一区二区在线| 国产综合久久久久久鬼色| 国产亚洲综合性久久久影院| 成人午夜av电影| 亚洲综合清纯丝袜自拍| 精品日本一线二线三线不卡| 高清免费成人av| 亚洲愉拍自拍另类高清精品| 欧美一区二区视频观看视频| 国产一区免费电影| 亚洲老妇xxxxxx| 欧美一级免费大片| 成人av资源在线| 三级精品在线观看| 国产精品免费网站在线观看| 欧美无砖专区一中文字| 精品中文字幕一区二区小辣椒| 国产亚洲欧洲997久久综合| 91久久香蕉国产日韩欧美9色| 日本欧美一区二区| 亚洲人成影院在线观看| 欧美一级生活片| 日本精品裸体写真集在线观看 | 97久久久精品综合88久久| 三级精品在线观看| 综合欧美一区二区三区| 日韩三级av在线播放| 99久久99久久精品免费看蜜桃| 首页综合国产亚洲丝袜| 国产精品你懂的在线欣赏| 欧美日韩的一区二区| www.亚洲人| 国产九九视频一区二区三区| 日韩av一区二区在线影视| 国产精品久久夜| 国产亚洲一区二区在线观看| 欧美日韩国产一级片| 91蜜桃在线免费视频| 国产一区二区三区香蕉| 蜜臀av一级做a爰片久久| 一区二区三区中文在线| 中文av一区二区| 久久久精品综合| 日韩精品专区在线影院观看| 欧美日韩久久久一区| 91国偷自产一区二区三区成为亚洲经典 | 精品一区二区在线观看| 五月综合激情网| 亚洲精品视频一区| 中文字幕一区在线观看视频| 久久精品一级爱片| 精品美女在线播放| 精品美女被调教视频大全网站| 欧美区一区二区三区| 在线观看免费成人| 在线看国产一区| 一本色道综合亚洲| 91麻豆产精品久久久久久| 国产成人在线电影| 国产精品一区二区你懂的| 激情综合色综合久久综合| 热久久一区二区| 日韩精品电影在线观看| 五月天激情小说综合| 丝袜亚洲精品中文字幕一区| 亚洲成人中文在线| 日韩二区三区四区| 蜜乳av一区二区三区| 免费成人在线视频观看| 精品在线免费观看| 激情综合网最新| 成人久久18免费网站麻豆 | 国产一本一道久久香蕉| 久久精品免费看| 国产成人综合在线| 成人成人成人在线视频| 99久久精品免费看国产| 色av成人天堂桃色av| 欧美日韩不卡一区| 欧美成人精品二区三区99精品| 日韩一二三区视频| 久久久电影一区二区三区| 亚洲精选在线视频| 午夜影视日本亚洲欧洲精品| 美女视频黄 久久| 成人午夜av在线| 欧洲精品视频在线观看| 欧美一区二区免费视频| 久久久久久久久久久久久夜| 自拍偷拍国产亚洲| 日本 国产 欧美色综合| 懂色av噜噜一区二区三区av| 色成年激情久久综合| 日韩欧美国产三级| 国产精品久久久久久福利一牛影视 | 国产精品视频你懂的| 伊人一区二区三区| 日韩精品1区2区3区| 国产电影精品久久禁18| 欧美亚洲动漫精品| 国产农村妇女精品| 亚洲国产色一区| 国产在线一区观看| 91福利在线观看| 国产欧美一区二区三区在线看蜜臀 | 色婷婷久久久综合中文字幕| 777精品伊人久久久久大香线蕉| 久久日韩粉嫩一区二区三区| 一区二区三区不卡视频| 狠狠色丁香婷婷综合久久片| 一本大道久久a久久综合婷婷| 555夜色666亚洲国产免| 中文字幕在线一区二区三区| 男人的j进女人的j一区| 97久久久精品综合88久久| 日韩精品一区在线| 亚洲成年人影院| 99国产精品久| 久久久精品免费免费| 日产欧产美韩系列久久99| 91香蕉视频黄| 国产亚洲一二三区| 蜜芽一区二区三区| 欧美视频在线一区二区三区| 中文字幕免费不卡| 极品少妇xxxx偷拍精品少妇| 制服丝袜日韩国产| 一区二区成人在线观看| proumb性欧美在线观看| 欧美精品一区二区高清在线观看 | 欧美日韩国产bt| 亚洲免费资源在线播放| 粉嫩高潮美女一区二区三区 | 国产精品夫妻自拍| 老司机精品视频一区二区三区| 欧洲激情一区二区| 亚洲另类在线一区| 色美美综合视频| 亚洲男同1069视频| 91香蕉视频mp4| 中文字幕日韩av资源站| 国产99一区视频免费| 国产日产精品1区| 黄一区二区三区| 精品欧美一区二区三区精品久久 | 亚洲超丰满肉感bbw| 在线国产亚洲欧美| 一区二区三区在线视频观看| 91网站最新网址| 亚洲自拍都市欧美小说| 欧美日韩在线播放三区四区| 亚洲一区二区在线播放相泽| 欧美在线综合视频|