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

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

?? sfrt.h

?? 著名的入侵檢測系統snort的最新版本的源碼
?? H
字號:
/**************************************************************************** * * Copyright (C) 2006-2007 Sourcefire, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as * published by the Free Software Foundation.  You may not use, modify or * distribute this program under any other version of the GNU General * Public License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ****************************************************************************//* * @file    sfrt.h * @author  Adam Keeton <akeeton@sourcefire.com> * @date    Thu July 20 10:16:26 EDT 2006 * * SFRT implements two different routing table lookup methods that have been  * adapted to return a void pointers. Any generic information may be  * associated with a given IP or CIDR block. * * As of this writing, the two methods used are Stefan Nilsson and Gunnar  * Karlsson's LC-trie, and a multibit-trie method similar to Gupta et-al.'s  * DIR-n-m.  Presently, the LC-trie is used for testing purposes as the * current implementation does not allow for fast, dynamic inserts. * * The intended use is to associate large IP blocks with specific information; * such as what may be written into the table by RNA.   * * NOTE: information should only move from less specific to more specific, ie: *   *      First insert:  1.1.0.0/16  ->  some data *      Second insert: 1.1.2.3     ->  some other data * * As opposed to: * *      First insert:  1.1.2.3     ->  some other data *      Second insert: 1.1.0.0/16  ->  some data * * If more general information is to overwrite existing entries, the table  * should be free'ed and rebuilt.  This is due to the difficulty of cleaning  * out stale entries with the current implementation.  At runtime, this won't * be a significant issue since inserts should apply to specific IP addresses * and not entire blocks of IPs. *  * * Implementation: * * The routing tables associate an index into a "data" table with each CIDR.   * Each entry in the data table stores a pointer to actual data.  This  * implementation was chosen so each routing entry only needs one word to  * either index the data array, or point to another table.   *  * Inserts are performed by specifying a CIDR and a pointer to its associated * data.  Since a new routing table entry may overwrite previous entries,  * a flag selects whether the insert favors the most recent or favors the most * specific.  Favoring most specific should be the default behvior.  If  * the user wishes to overwrite routing entries with more general data, the  * table should be flushed, rather than using favor-most-recent. *  * Before modifying the routing or data tables, the insert function performs a * lookup on the CIDR-to-be-insertted.  If no entry or an entry *of differing  * bit length* is found, the data is insertted into the data table, and its * index is used for the new routing table entry.  If an entry is found that  * is as specific as the new CIDR, the index stored points to where the new  * data is written into the data table. *  * If more specific CIDR blocks overwrote the data table, then the more  * general routing table entries that were not overwritten will be referencing * the wrong data.  Alternatively, less specific entries can only overwrite * existing routing table entries if favor-most-recent inserts are used. * * Because there is no quick way to clean the data-table if a user wishes to * use a favor-most-recent insert for more general data, the user should flush * the table with sfrt_free and create one anew.  Alternatively, a small  * memory leak occurs with the data table, as it will be storing pointers that * no routing table entry cares about. * * * The API calls that should be used are:  *  sfrt_new    - create new table *  sfrt_insert - insert entry  *  sfrt_lookup - lookup entry *  sfrt_free   - free table*/#ifndef ROUTE_H#define ROUTE_H#ifdef HAVE_CONFIG_H#include "config.h"#endif#include "decode.h"#include <stdlib.h>#include <sys/types.h>#include "sfrt_trie.h"#include "debug.h"typedef u_int32_t IP;typedef void* GENERIC;   /* To be replaced with a pointer to a policy */typedef struct {    word index;    word length;} tuple_t;#include "sfrt_dir.h"//#define SUPPORT_LCTRIE#ifdef SUPPORT_LCTRIE#include "sfrt_lctrie.h"#endifenum types {#ifdef SUPPORT_LCTRIE   LCT,#endif   DIR_24_8,   DIR_16x2,   DIR_16_8x2,   DIR_16_4x4,   DIR_8x4,   DIR_4x8,   DIR_2x16,   IPv4,   IPv6};enum return_codes {   RT_SUCCESS=0,   RT_INSERT_FAILURE,   RT_POLICY_TABLE_EXCEEDED,   DIR_INSERT_FAILURE,   DIR_LOOKUP_FAILURE,   MEM_ALLOC_FAILURE #ifdef SUPPORT_LCTRIE   ,   LCT_COMPILE_FAILURE,   LCT_INSERT_FAILURE,   LCT_LOOKUP_FAILURE#endif};/* Defined in sfrt.c */extern char *rt_error_messages[];enum {    RT_FAVOR_TIME,   RT_FAVOR_SPECIFIC};/*******************************************************************//* Master table struct.  Abstracts DIR and LC-trie methods         */typedef struct {    GENERIC *data;      /* data table. Each IP points to an entry here */    u_int32_t num_ent;  /* Number of entries in the policy table */    u_int32_t max_size; /* Max size of policies array */    char ip_type;       /* Only IPs of this family will be used */    char table_type;        u_int32_t allocated;    void *rt;            /* Actual "routing" table */    tuple_t (*lookup)(IP ip, GENERIC);     int (*insert)(IP ip, int len, word index, int behavior, GENERIC);     void (*free)(void *);    u_int32_t (*usage)(void *);} table_t;/*******************************************************************//* Abstracted routing table API */table_t * sfrt_new(char type, char ip_type, long data_size, u_int32_t mem_cap);void      sfrt_free(table_t *table);GENERIC sfrt_lookup(void *adr, table_t* table);typedef void (*sfrt_iterator_callback)(void *);void    sfrt_iterate(table_t* table, sfrt_iterator_callback userfunc);void    sfrt_cleanup(table_t* table, sfrt_iterator_callback userfunc);int     sfrt_insert(void *adr, unsigned char len, GENERIC ptr,                         int behavior, table_t *table);u_int32_t     sfrt_usage(table_t *table);u_int32_t     sfrt_num_entries(table_t *table);#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆一区二区三区| 欧美精品在线观看播放| 91国模大尺度私拍在线视频| 日韩欧美电影在线| 亚洲日本欧美天堂| 亚洲色图制服丝袜| 制服丝袜亚洲精品中文字幕| 成人黄动漫网站免费app| 日韩午夜小视频| 亚洲另类在线制服丝袜| 国产精品一区二区不卡| 日韩一区二区精品葵司在线| 亚洲综合色网站| www.欧美亚洲| 国产亚洲婷婷免费| 精品一区免费av| 欧美理论片在线| 亚洲女人****多毛耸耸8| 粉嫩av亚洲一区二区图片| 日韩精品在线一区| 美女视频黄 久久| 欧美精品乱人伦久久久久久| 亚洲成人综合在线| 欧美色老头old∨ideo| 亚洲国产视频在线| 欧美性一区二区| 一区二区三区中文字幕电影| 91美女片黄在线| 亚洲欧美aⅴ...| 色老汉av一区二区三区| 亚洲欧美日韩在线| 色吧成人激情小说| 亚洲美女一区二区三区| 色综合久久久久网| 亚洲精品水蜜桃| 欧美四级电影网| 亚洲二区视频在线| 51精品国自产在线| 蜜臀精品一区二区三区在线观看 | 91在线视频免费观看| 国产精品无码永久免费888| 国产精品456露脸| 中文字幕第一页久久| 91网上在线视频| 亚洲国产日韩av| 日韩一区二区三区电影在线观看| 日韩高清在线观看| 精品久久人人做人人爱| 国产精品538一区二区在线| 国产精品拍天天在线| 91免费在线播放| 婷婷六月综合网| 欧美电影免费观看完整版| 国产一区二区三区蝌蚪| 欧美高清在线精品一区| 色屁屁一区二区| 蜜桃精品在线观看| 中日韩av电影| 欧美日韩视频在线观看一区二区三区| 五月婷婷色综合| 国产亚洲精品超碰| 色88888久久久久久影院野外 | 一区二区三区日韩欧美精品 | 在线亚洲+欧美+日本专区| 五月天亚洲婷婷| 久久久久久电影| 日本乱人伦aⅴ精品| 免费的国产精品| 国产精品久久99| 欧美精品99久久久**| 国产1区2区3区精品美女| 午夜久久久久久| 中文字幕高清不卡| 欧美一区二区免费视频| 成人av在线影院| 久久精品久久综合| 亚洲一线二线三线久久久| 国产目拍亚洲精品99久久精品| 色域天天综合网| 国产一区二区在线免费观看| 一区二区三区日韩欧美| 欧美高清在线精品一区| 日韩一级免费观看| 欧美午夜一区二区三区| 国产成人一区在线| 久久国产剧场电影| 亚洲一二三专区| 国产精品久久二区二区| www国产精品av| 91精品久久久久久蜜臀| 欧美在线一区二区| 99精品国产91久久久久久 | av成人免费在线| 久久国产精品一区二区| 五月激情六月综合| 亚洲精品老司机| 中文字幕一区二区三区四区不卡 | 99久久精品国产麻豆演员表| 国产美女久久久久| 另类小说欧美激情| 舔着乳尖日韩一区| 亚洲午夜三级在线| 一区二区三区在线免费视频| 中文字幕日本不卡| 国产精品久久777777| 国产精品国产三级国产a| 国产精品免费看片| 国产欧美日韩不卡免费| 国产欧美一区二区精品性色超碰 | 精品免费日韩av| 欧美不卡视频一区| 26uuu另类欧美亚洲曰本| 欧美xxxxxxxx| 精品国产百合女同互慰| www久久精品| 国产欧美日韩亚州综合| 国产精品久久午夜夜伦鲁鲁| 国产精品系列在线| 亚洲精品中文字幕在线观看| 亚洲女同一区二区| 亚洲成人动漫在线观看| 亚洲bt欧美bt精品777| 日韩精品成人一区二区在线| 日韩不卡手机在线v区| 麻豆久久久久久| 国产精品亚洲成人| 不卡av免费在线观看| 91性感美女视频| 欧美日韩高清不卡| 日韩精品一区二区三区中文不卡 | 久久精品亚洲精品国产欧美| 国产亚洲欧洲一区高清在线观看| 久久精品一区二区三区不卡 | 国产精品毛片高清在线完整版| 国产精品免费视频观看| 一区二区三区加勒比av| 日本视频中文字幕一区二区三区| 美女视频一区二区三区| 国产专区欧美精品| 色综合久久久久久久久| 欧美一区二区三区在| 久久久噜噜噜久噜久久综合| 国产精品久久久一本精品| 午夜视频在线观看一区二区 | 精品亚洲成a人| 福利视频网站一区二区三区| 日本韩国欧美一区二区三区| 91精品国产91热久久久做人人| 久久精品一区二区三区不卡 | 处破女av一区二区| 欧美日韩激情一区二区三区| 精品剧情v国产在线观看在线| 国产精品电影一区二区| 日本最新不卡在线| 97se亚洲国产综合自在线观| 91精品在线观看入口| 亚洲视频网在线直播| 蜜臀av性久久久久蜜臀av麻豆| 91视频免费播放| 日韩欧美成人激情| 亚洲精品视频在线看| 国产成人综合视频| 欧美日韩国产bt| 亚洲人一二三区| 国产精品91xxx| 91精品综合久久久久久| 亚洲精品高清视频在线观看| 精彩视频一区二区三区| 欧美区一区二区三区| 国产精品久久久久久户外露出| 麻豆中文一区二区| 欧美人牲a欧美精品| 亚洲精品一二三| av电影在线观看一区| 久久亚洲二区三区| 视频在线观看一区| 欧美在线免费观看亚洲| 中文字幕欧美一| 成人午夜私人影院| 国产视频在线观看一区二区三区 | 亚洲成人资源网| 在线一区二区三区四区五区 | 国产色一区二区| 麻豆视频观看网址久久| 在线不卡欧美精品一区二区三区| 亚洲乱码中文字幕| 91农村精品一区二区在线| 国产精品欧美综合在线| 国产精品资源在线观看| 欧美va亚洲va香蕉在线| 日韩国产欧美在线播放| 欧美视频自拍偷拍| 亚洲国产婷婷综合在线精品| 欧美性xxxxxx少妇| 亚洲狠狠爱一区二区三区| 欧美性大战久久久久久久| 亚洲午夜av在线| 7777精品伊人久久久大香线蕉经典版下载 | 国产精品一区二区三区四区| 日韩精品中文字幕在线一区|