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

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

?? libnet-asn1.h

?? 著名的入侵檢測系統snort的最新版本的源碼
?? H
字號:
/*
 *  $Id$
 *
 *  libnet-asn1.h - Network routine library ASN.1 header file
 *
 *  Definitions for Abstract Syntax Notation One, ASN.1
 *  As defined in ISO/IS 8824 and ISO/IS 8825
 *
 *  Copyright 1988, 1989 by Carnegie Mellon University
 *  All rights reserved.
 *
 *  Permission to use, copy, modify, and distribute this software and its
 *  documentation for any purpose and without fee is hereby granted,
 *  provided that the above copyright notice appear in all copies and that
 *  both that copyright notice and this permission notice appear in
 *  supporting documentation, and that the name of CMU not be
 *  used in advertising or publicity pertaining to distribution of the
 *  software without specific, written prior permission.
 *
 *  CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 *  ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 *  CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 *  ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 *  SOFTWARE.
 *
 *  Copyright (c) 1998, 1999, 2000 Mike D. Schiffman <mike@infonexus.com>
 *  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#ifndef __LIBNET_ASN1_H
#define __LIBNET_ASN1_H

#ifndef EIGHTBIT_SUBIDS
typedef u_long  oid;
#define MAX_SUBID   0xFFFFFFFF
#else
typedef u_char  oid;
#define MAX_SUBID   0xFF
#endif

#define MAX_OID_LEN         64  /* max subid's in an oid */

#define ASN_BOOLEAN         (0x01)
#define ASN_INTEGER         (0x02)
#define ASN_BIT_STR         (0x03)
#define ASN_OCTET_STR       (0x04)
#define ASN_NULL            (0x05)
#define ASN_OBJECT_ID       (0x06)
#define ASN_SEQUENCE        (0x10)
#define ASN_SET             (0x11)

#define ASN_UNIVERSAL       (0x00)
#define ASN_APPLICATION     (0x40)
#define ASN_CONTEXT         (0x80)
#define ASN_PRIVATE         (0xC0)

#define ASN_PRIMITIVE       (0x00)
#define ASN_CONSTRUCTOR     (0x20)

#define ASN_LONG_LEN        (0x80)
#define ASN_EXTENSION_ID    (0x1F)
#define ASN_BIT8            (0x80)

#define IS_CONSTRUCTOR(byte)  ((byte) & ASN_CONSTRUCTOR)
#define IS_EXTENSION_ID(byte) (((byte) & ASN_EXTENSION_ID) = ASN_EXTENSION_ID)

/*
 *  All of the build_asn1_* (build_asn1_length being an exception) functions
 *  take the same first 3 arguments:
 *
 *  u_char *data:   This is a pointer to the start of the data object to be
 *                  manipulated.
 *  int *datalen:   This is a pointer to the number of valid bytes following
 *                  "data".  This should be not be exceeded in any function.
 *                  Upon exiting a function, this value will reflect the
 *                  changed "data" and then refer to the new number of valid
 *                  bytes until the end of "data".
 *  u_char type:    The ASN.1 object type.
 */


/*
 *  Builds an ASN object containing an integer.
 *
 *  Returns NULL upon error or a pointer to the first byte past the end of
 *  this object (the start of the next object).
 */

u_char *
libnet_build_asn1_int(
    u_char *,           /* Pointer to the output buffer */
    int *,              /* Number of valid bytes left in the buffer */
    u_char,             /* ASN object type */
    long *,             /* Pointer to a long integer */
    int                 /* Size of a long integer */
    );


/*
 *  Builds an ASN object containing an unsigned integer.
 *
 *  Returns NULL upon error or a pointer to the first byte past the end of
 *  this object (the start of the next object).
 */
u_char *
libnet_build_asn1_uint(
    u_char *,           /* Pointer to the output buffer */
    int *,              /* Number of valid bytes left in the buffer */
    u_char,             /* ASN object type */
    u_long *,           /* Pointer to an unsigned long integer */
    int                 /* Size of a long integer */
    );


/*
 *  Builds an ASN object containing an octect string.
 *
 *  Returns NULL upon error or a pointer to the first byte past the end of
 *  this object (the start of the next object).
 */

u_char *
libnet_build_asn1_string(
    u_char *,           /* Pointer to the output buffer */
    int *,              /* Number of valid bytes left in the buffer */
    u_char,             /* ASN object type */
    u_char *,           /* Pointer to a string to be built into an object */
    int                 /* Size of the string */
    );


/*
 *  Builds an ASN header for an object with the ID and length specified.  This
 *  only works on data types < 30, i.e. no extension octets.  The maximum
 *  length is 0xFFFF;
 *
 *  Returns a pointer to the first byte of the contents of this object or
 *  NULL upon error
 */

u_char *
libnet_build_asn1_header(
    u_char *,       /* Pointer to the start of the object */
    int *,          /* Number of valid bytes left in buffer */
    u_char,         /* ASN object type */
    int             /* ASN object length */
    );


u_char *
libnet_build_asn1_length(
    u_char *,       /* Pointer to start of object */
    int *,          /* Number of valid bytes in buffer */
    int             /* Length of object */
    );


/*
 *  Builds an ASN header for a sequence with the ID and length specified.
 *
 *  This only works on data types < 30, i.e. no extension octets.
 *  The maximum length is 0xFFFF;
 *
 *  Returns a pointer to the first byte of the contents of this object.
 *  Returns NULL on any error.
 */

u_char *
libnet_build_asn1_sequence(
    u_char *,
    int *,
    u_char,
    int
    );


/*
 *  Builds an ASN object identifier object containing the input string.
 *
 *  Returns NULL upon error or a pointer to the first byte past the end of
 *  this object (the start of the next object).
 */

u_char *
libnet_build_asn1_objid(
    u_char *,
    int *,
    u_char,
    oid *,
    int
    );


/*
 *  Builds an ASN null object.
 *
 *  Returns NULL upon error or a pointer to the first byte past the end of
 *  this object (the start of the next object).
 */

u_char *
libnet_build_asn1_null(
    u_char *,
    int *,
    u_char
    );


/*
 *  Builds an ASN bitstring.
 *
 *  Returns NULL upon error or a pointer to the first byte past the end of
 *  this object (the start of the next object).
 */

u_char *
libnet_build_asn1_bitstring(
    u_char *,
    int *,
    u_char,
    u_char *,       /* Pointer to the input buffer */
    int             /* Length of the input buffer */
    );


#endif  /* __LIBNET_ASN1_H */

/* EOF */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合一区二区精品导航| 欧美日韩在线播放一区| 美国毛片一区二区三区| 国产精品久久久久久久第一福利 | 国产精品乱人伦一区二区| 亚洲一区二区三区中文字幕在线 | 久久国产人妖系列| 国产99久久久国产精品免费看| 色偷偷88欧美精品久久久| 777午夜精品免费视频| 久久久久久久网| 亚洲一区二区三区四区在线观看 | 欧美一区二区精品久久911| 国产日产欧产精品推荐色 | 国产精品国产三级国产aⅴ原创| 亚洲va欧美va人人爽| 成人a免费在线看| 欧美中文字幕不卡| 久久免费美女视频| 天天影视网天天综合色在线播放| 成人一区二区三区在线观看| 欧美日高清视频| 亚洲欧洲日韩综合一区二区| 免费在线观看视频一区| 欧美性高清videossexo| 中文字幕一区二区三区精华液 | av不卡一区二区三区| 日韩欧美资源站| 五月天亚洲精品| 91久久久免费一区二区| 国产欧美精品国产国产专区| 久久国产精品无码网站| 欧美日韩一区成人| 亚洲自拍偷拍麻豆| 一本到不卡免费一区二区| 国产亚洲欧美激情| 精品写真视频在线观看| 欧美少妇一区二区| 一区二区免费视频| 972aa.com艺术欧美| 欧美成人女星排名| 视频在线观看一区二区三区| 欧美日韩高清一区二区不卡| 亚洲一级二级在线| 91麻豆国产福利在线观看| 日韩毛片精品高清免费| a级精品国产片在线观看| 国产精品午夜在线| 风间由美一区二区三区在线观看| 精品成人在线观看| 国产一区二区三区在线观看精品| www成人在线观看| 精品无人码麻豆乱码1区2区 | 色激情天天射综合网| 亚洲另类春色校园小说| 99精品欧美一区| 亚洲国产日韩综合久久精品| 6080午夜不卡| 国产成人亚洲综合a∨猫咪| 亚洲欧洲色图综合| 5月丁香婷婷综合| 国产精品自在欧美一区| 亚洲色欲色欲www| 日韩午夜在线播放| 99久久国产综合精品女不卡| 亚洲va韩国va欧美va精品| 精品久久久久久亚洲综合网| 99re这里只有精品6| 久热成人在线视频| 亚洲另类一区二区| 26uuu国产在线精品一区二区| 99久久久国产精品| 青青草原综合久久大伊人精品 | 亚洲在线视频网站| 久久亚洲一区二区三区明星换脸 | 国产一区二区三区久久悠悠色av| 亚洲精品欧美激情| 久久久久久久久久美女| 欧美日韩一区二区三区在线 | 亚洲视频香蕉人妖| 日韩精品一区二区三区蜜臀 | 亚洲综合丝袜美腿| 国产精品污www在线观看| 日韩欧美色电影| 欧美性猛交xxxxxx富婆| 国产高清精品网站| 久久国产三级精品| 婷婷久久综合九色综合绿巨人 | 久久久久亚洲综合| 欧美日韩国产不卡| 一本一道综合狠狠老| 国产成人日日夜夜| 美脚の诱脚舐め脚责91| 午夜久久久久久| 亚洲精品午夜久久久| 日本一区二区久久| 久久精品视频免费观看| 日韩免费观看高清完整版| 欧美日韩精品欧美日韩精品| 99久久久免费精品国产一区二区| 国产高清视频一区| 国产精品99久久久久久似苏梦涵| 蜜桃av噜噜一区二区三区小说| 亚洲成av人片一区二区梦乃 | 欧美精品电影在线播放| 91国偷自产一区二区使用方法| 成人app在线观看| 国产成人免费视频一区| 极品尤物av久久免费看| 精品一区二区综合| 麻豆精品一二三| 久久99精品国产麻豆婷婷洗澡| 日本不卡不码高清免费观看| 日本网站在线观看一区二区三区| 亚洲大型综合色站| 日韩专区中文字幕一区二区| 天堂av在线一区| 免费一级片91| 精品无人区卡一卡二卡三乱码免费卡| 奇米一区二区三区av| 久久99精品国产| 国产成人午夜99999| 91在线国产福利| 91国产免费看| 7777女厕盗摄久久久| 精品久久久久久久久久久院品网| 久久亚区不卡日本| 欧美极品少妇xxxxⅹ高跟鞋| 1024成人网| 亚洲高清中文字幕| 麻豆精品视频在线观看| 国产精品影视在线| 99久久久国产精品免费蜜臀| 色婷婷精品久久二区二区蜜臀av| 欧美在线观看18| 日韩无一区二区| 日本一区二区免费在线观看视频 | 欧美三级日韩三级| 日韩一级片网站| 欧美国产日产图区| 亚洲一区欧美一区| 久久超碰97中文字幕| 成人禁用看黄a在线| 欧美日韩另类一区| 久久久久久久久97黄色工厂| 亚洲精品五月天| 精品一区二区在线免费观看| 99精品1区2区| 91精品国产欧美日韩| 国产精品免费丝袜| 天天影视网天天综合色在线播放| 国产一区视频导航| 欧美性极品少妇| 中文av一区特黄| 青青国产91久久久久久| 不卡的电视剧免费网站有什么| 欧美日韩在线三级| 中文字幕精品三区| 蜜臀av一级做a爰片久久| 波多野结衣视频一区| 欧美一级日韩一级| 亚洲女与黑人做爰| 国内精品免费在线观看| 精品婷婷伊人一区三区三| 国产精品免费aⅴ片在线观看| 日日夜夜精品视频天天综合网| 粗大黑人巨茎大战欧美成人| 日韩三级电影网址| 一区二区三区不卡在线观看| 国内精品视频一区二区三区八戒| 欧美色精品天天在线观看视频| 国产精品免费视频网站| 麻豆视频观看网址久久| 欧美日韩色一区| 日韩美女精品在线| 国产成人aaa| 精品99久久久久久| 欧美aaa在线| 欧美美女一区二区在线观看| 中文字幕制服丝袜一区二区三区| 麻豆freexxxx性91精品| 欧美性三三影院| 亚洲激情图片一区| 91视频www| 亚洲码国产岛国毛片在线| 成人精品小蝌蚪| 日本一区二区三区久久久久久久久不| 久久国产尿小便嘘嘘| 日韩一二三区不卡| 日韩黄色小视频| 欧美老女人在线| 视频一区二区三区中文字幕| 欧美在线观看你懂的| 亚洲乱码国产乱码精品精的特点| 不卡一卡二卡三乱码免费网站| 久久精品人人做人人爽人人| 国产老肥熟一区二区三区| 国产亚洲综合色| 成人在线综合网站| 国产亚洲福利社区一区|