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

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

?? libnet-functions.h

?? 這是有關網絡入侵檢測技術系統的源代碼。使用visual c++編程
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
 *  $Id: libnet-functions.h,v 1.12 1999/10/27 01:37:22 route Exp $
 *
 *  libnet-functions.h - Network routine library function prototype header file
 *
 *  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_FUNCTIONS_H
#define __LIBNET_FUNCTIONS_H


int                                     /* 1 if good, -1 if bad */
libnet_plist_chain_new(
    struct libnet_plist_chain **,       /* pointer to the head of the list */
    char *                              /* token list pointer */
    );


int                                     /* 1 if more nodes, 0 if not */
libnet_plist_chain_next_pair(
    struct libnet_plist_chain *,        /* pointer to the head of the list */
    u_short *bport,                     /* holds bport */
    u_short *eport                      /* holds eport */
    );


int
libnet_plist_chain_dump(
    struct libnet_plist_chain *         /* pointer to the head of the list */
    );


u_char *
libnet_plist_chain_dump_string(
    struct libnet_plist_chain *         /* pointer to the head of the list */
    );


int
libnet_plist_chain_free(
    struct libnet_plist_chain *         /* pointer to the head of the list */
    );

/*
 *  Standard error handling code.
 */

void
libnet_error(
    int,                /* severity */
    char *,             /* error message */
    ...                 /* varargs */
    );


/*
 *  Seeds the pseudorandom number generator with gettimeofday.
 */

int
libnet_seed_prand();


/*
 *  Returns a psuedorandom positive integer.
 */

u_long
libnet_get_prand(
    int                 /* One of the PR* constants */
    );


/*
 *  Calculates IPv4 family checksum on packet headers.
 */

int                     /* 1 on success, -1 on failure */
libnet_do_checksum(
    u_char *,           /* Pointer to the packet buffer */
    int,                /* Protocol */
    int                 /* Packet size */
    );


/*
 *  Network byte order into IP address
 *  Previous versions had a memory leak (returned a strdup'd pointer -- strdup
 *  has an implicit malloc which wasn't getting freed).  This static var hack
 *  thingy was used to preserve existing code without having to change much.
 *  You can simply use the return value of the function directly allowing you
 *  to write tighter, more obvious code (rather then having to do allocate an
 *  additional buffer for the output).
 *  Thanks to Red for the idea.
 */

u_char *                /* Pointer to hostname or dotted decimal IP address */
libnet_host_lookup(
    u_long,             /* Network byte ordered (big endian) IP address */
    u_short             /* Use domain names or no */
    );


/*
 *  Network byte order into IP address
 *  Threadsafe version.
 */

void
libnet_host_lookup_r(
    u_long,             /* Network byte ordered (big endian) IP address */
    u_short,            /* Use domain names or no */
    u_char *            /* Pointer to hostname or dotted decimal IP address */
    );


/*
 *  IP address into network byte order
 */

u_long                  /* Network byte ordered IP address or -1 on error */
libnet_name_resolve(
    u_char *,           /* Pointer the hostname or dotted decimal IP address */
    u_short             /* Use domain names or no */
    );


/*
 *  IP checksum wrapper.
 */

u_short                 /* Standard IP checksum of header and data */
libnet_ip_check(
    u_short *,          /* Pointer to the buffer to be summed */
    int                 /* Packet length */
    );


/*
 *  IP checksum.
 */

int                     /* Standard IP checksum */
libnet_in_cksum(
    u_short *,          /* Pointer to the buffer to be summed */
    int                 /* Packet length */
    );


/*
 *  Opens a socket for writing raw IP datagrams to.  Set IP_HDRINCL to let the 
 *  kernel know we've got it all under control.
 */

int                     /* Opened file desciptor, or -1 on error */
libnet_open_raw_sock(
    int                 /* Protocol of raw socket (from /etc/protocols) */
    );


int                     /* 1 upon success, or -1 on error */
libnet_close_raw_sock(
    int                 /* File descriptor */
    );


int
libnet_select_device(
    struct sockaddr_in *sin,
    u_char **device,
    u_char *ebuf
    );

/*
 *  Ethernet packet assembler.
 */

int                     /* -1 on failure (null buf passed in), 1 on success */
libnet_build_ethernet(
    u_char *,           /* Pointer to a 6 byte ethernet address */
    u_char *,           /* Pointer to a 6 byte ethernet address */
    u_short,            /* Packet IP type */
    const u_char *,     /* Payload (or NULL) */
    int,                /* Payload size */
    u_char *            /* Packet header buffer */
    );


/*
 *  ARP packet assembler.
 */

int                     /* -1 on failure (null buf passed in), 1 on success */
libnet_build_arp(
    u_short,            /* hardware address type */
    u_short,            /* protocol address type */
    u_char,             /* hardware address length */
    u_char,             /* protocol address length */
    u_short,            /* ARP operation type */
    u_char *,           /* sender hardware address */
    u_char *,           /* sender protocol address */
    u_char *,           /* target hardware address */
    u_char *,           /* target protocol address */
    const u_char *,     /* payload or NULL if none */
    int,                /* payload length */
    u_char *            /* packet buffer memory */
    );

/*
 *  TCP packet assembler.
 */

int                     /* -1 on failure (null buf passed in), 1 on success */
libnet_build_tcp(
    u_short,            /* Source port */
    u_short,            /* Destination port */
    u_long,             /* Sequence Number */
    u_long,             /* Acknowledgement Number */
    u_char,             /* Control bits */
    u_short,            /* Advertised Window Size */
    u_short,            /* Urgent Pointer */
    const u_char *,     /* Pointer to packet data (or NULL) */
    int,                /* Packet payload size */
    u_char *            /* Pointer to packet header memory */
    );


/*
 * UDP packet assembler.
 */

int                     /* -1 on failure (null buf passed in), 1 on success */
libnet_build_udp(
    u_short,            /* Source port */
    u_short,            /* Destination port */
    const u_char *,     /* Pointer to packet data (or NULL) */
    int,                /* Packet payload size */
    u_char *            /* Pointer to packet header memory */
    );

/*
 *  ICMP_ECHO packet assembler.
 */

int                     /* -1 on failure (null buf passed in), 1 on success */
libnet_build_icmp_echo(
    u_char,             /* icmp type */
    u_char,             /* icmp code */
    u_short,            /* id */
    u_short,            /* sequence number */
    const u_char *,     /* Pointer to packet data (or NULL) */
    int,                /* Packet payload size */
    u_char *            /* Pointer to packet header memory */
    );

/*
 *  ICMP_MASK packet assembler.
 */

int                     /* -1 on failure (null buf passed in), 1 on success */
libnet_build_icmp_mask(
    u_char,             /* icmp type */
    u_char,             /* icmp code */
    u_short,            /* id */
    u_short,            /* sequence number */
    u_long,             /* address mask */
    const u_char *,     /* Pointer to packet data (or NULL) */
    int,                /* Packet payload size */
    u_char *            /* Pointer to packet header memory */
    );


/*
 *  ICMP_UNREACH packet assembler.
 */

int                     /* -1 on failure (null buf passed in), 1 on success */
libnet_build_icmp_unreach(
    u_char,             /* icmp type */
    u_char,             /* icmp code */
    u_short,            /* Original Length of packet data */
    u_char,             /* Original IP tos */
    u_short,            /* Original IP ID */
    u_short,            /* Original Fragmentation flags and offset */
    u_char,             /* Original TTL */
    u_char,             /* Original Protocol */
    u_long,             /* Original Source IP Address */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区三区高清不卡| 欧美日韩一区二区三区不卡| 欧美精彩视频一区二区三区| 精品夜夜嗨av一区二区三区| 久久色.com| 成人蜜臀av电影| 依依成人精品视频| 7777精品伊人久久久大香线蕉的| 蜜臀av一区二区在线免费观看| 精品国产亚洲在线| 成人视屏免费看| 亚洲激情av在线| 日韩一区国产二区欧美三区| 国产一区 二区 三区一级| 国产精品乱人伦| 欧美少妇bbb| 国产在线一区观看| 亚洲欧洲99久久| 欧美久久一区二区| 成人一级片网址| 午夜视频在线观看一区二区| 26uuu国产电影一区二区| 97久久超碰国产精品| 亚洲va欧美va人人爽| 久久久精品免费观看| 欧美日韩一区二区三区四区五区| 久久99国产精品久久| 亚洲另类中文字| 2020国产精品| 欧美午夜精品免费| 成人夜色视频网站在线观看| 日韩福利视频导航| 综合久久久久综合| 精品捆绑美女sm三区| 日本乱码高清不卡字幕| 激情五月婷婷综合网| 洋洋av久久久久久久一区| 精品久久久久久最新网址| 色乱码一区二区三区88 | 裸体一区二区三区| 亚洲天堂2016| 久久午夜电影网| 久久亚洲精品国产精品紫薇| 色婷婷激情综合| 国产1区2区3区精品美女| 性久久久久久久久久久久| 亚洲欧洲综合另类| 国产女人18水真多18精品一级做| 91精品麻豆日日躁夜夜躁| 日本韩国精品在线| 99精品视频中文字幕| 国产一区二三区好的| 日本不卡一区二区三区| 亚洲精品大片www| 国产精品毛片高清在线完整版| 欧美极品美女视频| 日韩欧美电影在线| 欧美精品国产精品| 欧美日韩国产美女| 欧洲av一区二区嗯嗯嗯啊| 97久久精品人人做人人爽50路| 国产成人av网站| 国产精品综合二区| 国产精品1区二区.| 国产一区二三区| 久久超碰97中文字幕| 日本不卡中文字幕| 免费在线观看一区| 蜜臀va亚洲va欧美va天堂| 日韩av二区在线播放| 日韩二区在线观看| 日本人妖一区二区| 美女视频黄 久久| 久久国产精品无码网站| 激情成人综合网| 国产麻豆精品久久一二三| 国产一区二区视频在线| 韩国视频一区二区| 国产91综合一区在线观看| 国产99久久久国产精品潘金| 国产91精品入口| 99国内精品久久| 日本高清免费不卡视频| 欧美色涩在线第一页| 欧美日韩高清一区二区不卡| 欧美日韩精品免费| 日韩欧美123| 久久久99精品免费观看不卡| 国产日本亚洲高清| 综合激情成人伊人| 亚洲综合色视频| 日韩av午夜在线观看| 精品制服美女久久| 成人深夜视频在线观看| 91国产精品成人| 91精品国产综合久久久久| 精品久久人人做人人爰| 欧美国产日韩一二三区| 亚洲激情一二三区| 日本不卡一二三| 国产99久久精品| 欧美中文字幕亚洲一区二区va在线| 欧美日韩在线免费视频| 欧美tickling挠脚心丨vk| 中文字幕久久午夜不卡| 亚洲国产精品嫩草影院| 精品无人区卡一卡二卡三乱码免费卡 | 国产喂奶挤奶一区二区三区| 18成人在线观看| 日本va欧美va精品发布| 国产精品一区二区久久精品爱涩| 97精品国产露脸对白| 欧美一区二区在线视频| 国产精品欧美久久久久一区二区| 亚洲欧洲精品成人久久奇米网| 午夜精品久久久久久久 | 亚洲一线二线三线久久久| 男女男精品网站| 99久久精品国产观看| 91精选在线观看| 日韩一区日韩二区| 精品一区二区三区欧美| 色婷婷国产精品| 久久色在线观看| 午夜伦欧美伦电影理论片| 国产a视频精品免费观看| 7777精品伊人久久久大香线蕉超级流畅 | 风流少妇一区二区| 91精品国产综合久久久蜜臀图片| 国产欧美一区二区精品忘忧草| 亚洲一区二区三区四区的| 国产成人午夜精品影院观看视频 | 大白屁股一区二区视频| 欧美日韩一区二区欧美激情| 国产精品视频在线看| 美女性感视频久久| 欧美日韩在线播放一区| 国产精品美日韩| 国产一区激情在线| 日韩丝袜情趣美女图片| 一区二区日韩电影| av在线一区二区三区| 久久日韩精品一区二区五区| 国产一区二区三区香蕉| 日韩三级视频中文字幕| 亚洲香蕉伊在人在线观| 91视频精品在这里| 日本一区二区成人| 国产精品911| 久久久国产一区二区三区四区小说| 蜜臀av性久久久久蜜臀av麻豆| 欧美色图免费看| 亚洲欧美日韩在线播放| 99国产精品国产精品毛片| 欧美国产禁国产网站cc| 国产精品2024| 国产欧美日韩视频在线观看| 国产激情视频一区二区在线观看 | 亚洲视频狠狠干| bt欧美亚洲午夜电影天堂| 国产精品免费视频一区| 国产精品亚洲综合一区在线观看| 精品国产一区二区在线观看| 九色综合狠狠综合久久| 欧美电影免费提供在线观看| 久久不见久久见免费视频7| 日韩午夜激情电影| 精品伊人久久久久7777人| 精品盗摄一区二区三区| 狠狠色丁香婷综合久久| 久久久欧美精品sm网站 | 91蜜桃视频在线| 亚洲精品中文字幕乱码三区| 在线观看区一区二| 亚洲国产毛片aaaaa无费看| 欧美日韩国产一级片| 免费黄网站欧美| 精品久久国产老人久久综合| 国产一区二区h| 国产精品免费网站在线观看| 色综合久久66| 午夜精品福利一区二区三区av| 91精品国产综合久久久久久久| 九色综合国产一区二区三区| 国产日韩视频一区二区三区| eeuss鲁片一区二区三区在线观看| 1000部国产精品成人观看| 在线观看日韩国产| 免费成人av资源网| 国产调教视频一区| 色婷婷一区二区三区四区| 午夜精品视频一区| 久久影院午夜论| 91最新地址在线播放| 午夜精品久久久久| 久久五月婷婷丁香社区| 色欧美88888久久久久久影院| 日韩精品成人一区二区在线| 久久日韩精品一区二区五区| 色综合天天综合色综合av|