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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? libnet-ospf.h

?? 著名的入侵檢測(cè)系統(tǒng)snort的最新版本的源碼
?? H
字號(hào):
/*
 *  $Id$
 *
 *  libnet-ospf.h - Network routine library headers header file
 *
 *  Copyright (c) 1999 Andrew Reiter <areiter@bindview.com>
 *  Bindview Development
 *
 *  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_OSPF_H
#define __LIBNET_OSPF_H

#include <sys/types.h>


/*
 *  Not all OSes define this in /etc/protocols.. ie, solaris...
 */
#ifndef IPPROTO_OSPF
#define IPPROTO_OSPF	    89
#endif
#define IPPROTO_OSPF_LSA    890         /* Made this up.  Hope it's unused */
#define OSPFVERSION         2
#define LIBNET_MODX                4102        /* Used in LSA checksum */


/*
 *  OSPF header lengths.
 */
#define LIBNET_OSPF_H       0x10    /* 16 bytes */
#define LIBNET_HELLO_H      0x18    /* 24 bytes */
#define LIBNET_DBD_H        0x8     /* 8 bytes */
#define LIBNET_LSR_H        0xc     /* 12 bytes */
#define LIBNET_LSU_H        0x4     /* 4 bytes */
#define LIBNET_LSA_H        0x14    /* 20 bytes */
#define LIBNET_AUTH_H       0x8     /* 8 bytes */
#define LIBNET_OSPF_CKSUM   0x10    /* 16 bytes */


/*
 *  Link State packet format lengths.
 */
#define LIBNET_LS_RTR_LEN   	0x10	        /* 16 bytes */
#define LIBNET_LS_NET_LEN	0x8	        /* 8 bytes */
#define LIBNET_LS_SUM_LEN	0xc             /* 12 bytes */	
#define LIBNET_LS_AS_EXT_LEN	0x10            /* 16 bytes */	


/*
 *  OSPFv2 Packet Header.
 */
struct libnet_ospf_hdr
{
    u_char ospf_v;                   /* version */
    u_char ospf_type;                /* type */
#define  LIBNET_OSPF_UMD       0     /* UMd monitoring packet */
#define  LIBNET_OSPF_HELLO     1     /* HELLO packet */
#define  LIBNET_OSPF_DBD       2     /* DataBase Description Packet */
#define  LIBNET_OSPF_LSR       3     /* Link State Request Packet */
#define  LIBNET_OSPF_LSU       4     /* Link State Update Packet */
#define  LIBNET_OSPF_LSA       5     /* Link State Acknowledgement Packet */
    u_short   ospf_len;              /* length */
    struct in_addr  ospf_rtr_id;     /* source router ID */ 
    struct in_addr  ospf_area_id;    /* roam ID */
    u_short ospf_cksum;              /* checksum */
    u_short ospf_auth_type;          /* authentication type */
#define LIBNET_OSPF_AUTH_NULL   0    /* Null password */
#define LIBNET_OSPF_AUTH_SIMPLE 1    /* Simple, plaintext, 8 char password */
#define LIBNET_OSPF_AUTH_MD5    2    /* MD5 */
};


/*
 *  OSPF authentication header.
 */
struct libnet_auth_hdr
{
    u_short ospf_auth_null;         /* NULL */
    u_char  ospf_auth_keyid;        /* Authentication Key ID */
    u_char  ospf_auth_len;          /* Auth data length */
    u_int   ospf_auth_seq;          /* Cryptographic sequence number */
};


/*
 *  Options used in multiple OSPF packets.
 *  More info can be found in section A.2 of RFC 2328.
 */
#define LIBNET_OPT_EBIT  0x02 /* Describes the way AS-external-LSAs are flooded */
#define LIBNET_OPT_MCBIT 0x04 /* Whether or not IP multicast dgrams are fwdd */
#define LIBNET_OPT_NPBIT 0x08 /* Describes handling of type-7 LSAs */
#define LIBNET_OPT_EABIT 0x10 /* rtr's willingness to send/recv EA-LSAs */
#define LIBNET_OPT_DCBIT 0x20 /* Describes handling of demand circuits */


/*
 *  OSPF HELLO Packet Header.
 */
struct libnet_ospf_hello_hdr
{
    struct in_addr hello_nmask; /* Netmask associated with the interface */
    u_short hello_intrvl;       /* Num of seconds between routers last packet */
    u_char hello_opts;          /* Options for HELLO packets (look above) */
    u_char hello_rtr_pri;       /* Router's priority (if 0, can't be backup) */
    u_int hello_dead_intvl;     /* # of secs a router is silent till deemed down */
    struct in_addr hello_des_rtr;   /* Designated router on the network */
    struct in_addr hello_bkup_rtr;  /* Backup router */
    struct in_addr hello_nbr;	    /* neighbor router, memcpy more as needed */
};


/*
 *  Database Description header.
 */
struct libnet_dbd_hdr
{
    u_short dbd_mtu_len;    /* Max length of IP dgram that this 'if' can use */
    u_char dbd_opts;        /* DBD packet options (look above) */
    u_char dbd_type;        /* Type of exchange occurring (look below) */
#define LIBNET_DBD_IBIT    0x01    /* Init Bit */
#define LIBNET_DBD_MBIT    0x02    /* Says more DBD packets are to come */
#define LIBNET_DBD_MSBIT   0x04  /* If 1, sender is the master in the exchnge */
    u_int  dbd_seq;         /* DBD sequence number */
};


/*
 *  Used for the LS type field in all LS* headers.
 */
#define LIBNET_LS_TYPE_RTR	1   /* Router-LSA */
#define LIBNET_LS_TYPE_NET	2   /* Network-LSA */
#define LIBNET_LS_TYPE_IP	3   /* Summary-LSA (IP Network) */
#define LIBNET_LS_TYPE_ASBR    4   /* Summary-LSA (ASBR) */
#define LIBNET_LS_TYPE_ASEXT	5   /* AS-External-LSA */


/*
 *  Link State Request header.
 */
struct libnet_lsr_hdr
{
    u_int lsr_type;             /* Type of LS being requested (see below) */
    u_int lsr_lsid;             /* Link State ID */
    struct in_addr lsr_adrtr;   /* advertising router (memcpy more as needed) */
};


/*
 *  Link State Update header.
 */
struct libnet_lsu_hdr
{
    u_int lsu_num;              /* Number of LSAs that will be broadcasted */
};


/*
 *  Link State Acknowledgement header.
 */
struct libnet_lsa_hdr
{
    u_short lsa_age;        /* Time in seconds since the LSA was originated */
    u_char lsa_opts;        /* Look above for OPTS_* */
    u_char lsa_type;        /* Look below for LS_TYPE_* */
    u_int lsa_id;           /* Link State ID */
    struct in_addr lsa_adv; /* Router ID of Advertising router */
    u_int lsa_seq;          /* LSA sequence number to detect old/bad ones */
    u_char lsa_cksum[2];    /* "Fletcher Checksum" of all fields minus age */
    u_short lsa_len;        /* Length in bytes including the 20 byte header */
};


/*
 *  Router LSA data format
 *
 *  Other stuff for TOS can be added for backward compatability, for this
 *  version, only OSPFv2 is being FULLY supported.
 */

struct libnet_rtr_lsa_hdr
{
    u_short rtr_flags;      /* Set to help describe packet */
#define LIBNET_RTR_FLAGS_W     0x0100  /* W bit */
#define LIBNET_RTR_FLAGS_E     0x0200  /* E bit */
#define LIBNET_RTR_FLAGS_B     0x0400  /* B bit */
    u_short rtr_num;        /* Number of links within that packet */
    u_int rtr_link_id;      /* Describes link_data (look below) */
#define LIBNET_LINK_ID_NBR_ID  1       /* Neighbors router ID, also can be 4 */
#define LIBNET_LINK_ID_IP_DES  2       /* IP address of designated router */
#define LIBNET_LINK_ID_SUB     3       /* IP subnet number */
    u_int rtr_link_data;    /* Depending on link_id, info is here */
    u_char rtr_type;        /* Description of router link */
#define LIBNET_RTR_TYPE_PTP    1   /* Point-To-Point */
#define LIBNET_RTR_TYPE_TRANS  2   /* Connection to a "transit network" */
#define LIBNET_RTR_TYPE_STUB   3   /* Connectin to a "stub network" */
#define RTR_TYPE_VRTL   4   /* Connects to a "virtual link" */
    u_char rtr_tos_num;     /* Number of different TOS metrics for this link */
    u_short rtr_metric;     /* The "cost" of using this link */
};


/*
 *  Network LSA data format.
 */
struct libnet_net_lsa_hdr
{
    struct in_addr net_nmask;   /* Netmask for that network */
    u_int  net_rtr_id;          /* ID of router attached to that network */
};


/*
 *  Summary LSA data format.
 */
struct libnet_sum_lsa_hdr
{
    struct in_addr sum_nmask;   /* Netmask of destination IP address */
    u_int  sum_metric;          /* Same as in rtr_lsa (&0xfff to use last 24bit) */
    u_int  sum_tos_metric;      /* first 8bits are TOS, 24bits are TOS Metric */
};


/*
 *  AS External LSA data format.
 *  & 0xfff logic operator for as_metric to get last 24bits.
 */

struct libnet_as_lsa_hdr
{
    struct in_addr as_nmask;    /* Netmask for advertised destination */
    u_int  as_metric;           /* May have to set E bit in first 8bits */
#define LIBNET_AS_E_BIT_ON 0x80000000  /* as_metric */
    struct in_addr as_fwd_addr; /* Forwarding address */
    u_int  as_rte_tag;          /* External route tag */
};


int
libnet_build_ospf(
    u_short,
    u_char,
    u_long,
    u_long,
    u_short,
    const char *,
    int,
    u_char *
    );     


int
libnet_build_ospf_hello(
    u_long,
    u_short,
    u_char,
    u_char,
    u_int,
    u_long,
    u_long,
    u_long,
    const char *,
    int,
    u_char *
    );


int
libnet_build_ospf_dbd(
    u_short,
    u_char,
    u_char,
    u_int,
    const char *,
    int,
    u_char *
    );


int
libnet_build_ospf_lsr(
    u_int,
    u_int,
    u_long,
    const char *,
    int,
    u_char *
    );


int
libnet_build_ospf_lsu(
    u_int,
    const char *,
    int,
    u_char *
    );


int
libnet_build_ospf_lsa(
    u_short,
    u_char,
    u_char,
    u_int,
    u_long,
    u_int,
    u_short,
    const char *,
    int,
    u_char *
    );


int
libnet_build_ospf_lsa_rtr(
    u_short,
    u_short,
    u_int,
    u_int,
    u_char,
    u_char,
    u_short,
    const char *,
    int,
    u_char *
    );


int
libnet_build_ospf_lsa_net(
    u_long,
    u_int,
    const char *,
    int,
    u_char *
    );


int
libnet_build_ospf_lsa_sum(
    u_long,
    u_int,
    u_int,
    const char *,
    int,
    u_char *
    );


int
libnet_build_ospf_lsa_as(
    u_long,
    u_int,
    u_long, 
    u_int,
    const char *,
    int,
    u_char *
    );


void
libnet_ospf_lsa_checksum(
    u_char *,
    int
    );


#endif /* __LIBNET_OSPF_H */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜亚洲精品不卡| 午夜精品久久久久影视| 精品盗摄一区二区三区| 欧美一级二级三级乱码| 欧美精品vⅰdeose4hd| 欧美精品成人一区二区三区四区| 欧美日韩一区二区电影| 欧美老女人在线| 在线综合视频播放| 日韩午夜在线观看视频| 日韩视频在线观看一区二区| 欧美mv日韩mv亚洲| 国产亚洲综合性久久久影院| 中文幕一区二区三区久久蜜桃| 国产精品免费丝袜| 中文字幕亚洲在| 一区二区三区不卡在线观看| 亚洲1区2区3区4区| 麻豆成人在线观看| 国产麻豆精品视频| 波多野洁衣一区| 日本道在线观看一区二区| 在线播放国产精品二区一二区四区| 69久久99精品久久久久婷婷 | 亚洲欧美韩国综合色| 亚洲综合精品自拍| 免费日本视频一区| 国产丶欧美丶日本不卡视频| av电影一区二区| 99re在线视频这里只有精品| 欧美性受xxxx| 日韩欧美的一区二区| 亚洲国产精品av| 一区二区三区日本| 久久精品国产在热久久| 成人精品鲁一区一区二区| 在线免费观看视频一区| 精品久久久久久最新网址| 国产欧美日韩另类一区| 亚洲高清视频的网址| 国产麻豆精品视频| 欧美视频一区二区三区在线观看| 日韩欧美在线观看一区二区三区| 亚洲永久免费av| 久久av资源站| 色综合久久综合中文综合网| 欧美精品视频www在线观看| 久久久久久亚洲综合| 亚洲一区免费视频| 国产裸体歌舞团一区二区| 色老汉一区二区三区| 欧美成人三级在线| 亚洲一区二区四区蜜桃| 国产精品亚洲第一| 欧美欧美欧美欧美| 国产精品福利av| 久久国产福利国产秒拍| 日本丶国产丶欧美色综合| 久久麻豆一区二区| 日韩av不卡一区二区| a4yy欧美一区二区三区| 日韩欧美国产一区二区三区| 一区二区三区中文字幕精品精品| 国产一区999| 91精品婷婷国产综合久久| 国产精品久久久久一区二区三区共| 美腿丝袜亚洲综合| 欧美亚洲日本一区| 国产精品美女久久久久aⅴ国产馆| 日本成人在线网站| 欧美午夜一区二区| 国产精品对白交换视频| 国产精品一区免费视频| 在线播放日韩导航| 亚洲小说春色综合另类电影| 99精品视频在线免费观看| 欧美精品一区二区久久婷婷| 日韩专区一卡二卡| 欧美自拍偷拍一区| 亚洲精品日日夜夜| caoporm超碰国产精品| 国产亚洲一区二区在线观看| 久久精品av麻豆的观看方式| 欧美日韩国产综合一区二区三区| 国产精品卡一卡二| 国产成人午夜高潮毛片| 久久先锋资源网| 免费精品视频最新在线| 欧美日韩一级片网站| 伊人开心综合网| 91在线国产观看| 国产农村妇女毛片精品久久麻豆| 国产一区二区三区| 亚洲精品一区二区三区香蕉| 久久精品久久99精品久久| 欧美一区二区高清| 久久精品国产在热久久| 日韩天堂在线观看| 裸体在线国模精品偷拍| 日韩欧美在线影院| 九九视频精品免费| 精品免费视频.| 国产在线国偷精品产拍免费yy| 精品sm在线观看| 国产精品99久久久久| 国产日韩精品一区二区三区在线| 激情偷乱视频一区二区三区| 精品国产第一区二区三区观看体验| 久久99久久99精品免视看婷婷| 精品欧美一区二区三区精品久久| 久久66热re国产| 国产日韩欧美a| 99在线精品视频| 亚洲亚洲精品在线观看| 欧美一区二区三区的| 精品在线一区二区| 亚洲国产高清在线| 久久久久久夜精品精品免费| 国产成人啪午夜精品网站男同| 中文乱码免费一区二区| 色综合久久久久| 日韩中文字幕区一区有砖一区| 91精品午夜视频| 激情综合五月婷婷| 国产精品高潮呻吟久久| 欧美三片在线视频观看| 久久国产生活片100| 国产嫩草影院久久久久| 色播五月激情综合网| 日韩av一区二区在线影视| 久久人人超碰精品| 一本大道久久a久久精品综合| 亚洲超碰97人人做人人爱| 欧美精品一区二区久久久| 不卡的电影网站| 亚洲图片自拍偷拍| 精品久久久久一区| 一本到一区二区三区| 奇米影视在线99精品| 国产精品全国免费观看高清 | av在线综合网| 亚洲成人免费电影| 久久影院视频免费| 91久久国产综合久久| 久久成人麻豆午夜电影| 亚洲视频一区二区在线观看| 欧美精品一级二级| 国产成a人亚洲| 三级欧美在线一区| 亚洲国产成人私人影院tom| 欧美三级欧美一级| 粉嫩久久99精品久久久久久夜| 亚洲一区二区三区免费视频| 欧美成人三级在线| 欧美亚日韩国产aⅴ精品中极品| 精品一区二区三区久久| 亚洲男同性恋视频| 亚洲精品一区二区精华| 欧美午夜片在线观看| 国产 日韩 欧美大片| 午夜精品成人在线视频| 国产精品久久三区| 欧美mv日韩mv国产网站| 欧美三级在线播放| 成人精品一区二区三区四区 | 日韩二区三区在线观看| 中文字幕一区av| 欧美精品一区二区三区四区| 欧美综合一区二区三区| 国产精品一区二区三区99| 日韩成人一区二区| 亚洲一区二区精品3399| 国产精品久久久久久福利一牛影视| 日韩欧美aaaaaa| 欧美电影在哪看比较好| 99r精品视频| 国产精品中文字幕欧美| 奇米精品一区二区三区四区| 国产精品乱码人人做人人爱| 久久免费精品国产久精品久久久久 | 国产**成人网毛片九色| 久久精品72免费观看| 亚洲r级在线视频| 亚洲美女屁股眼交| 国产精品久久久久一区二区三区| 久久男人中文字幕资源站| 日韩亚洲电影在线| 91精品国产综合久久小美女| 91豆麻精品91久久久久久| 床上的激情91.| 粉嫩aⅴ一区二区三区四区五区| 激情成人午夜视频| 麻豆91在线播放| 免费美女久久99| 日本欧美一区二区在线观看| 亚洲一区二区精品久久av| 亚洲激情男女视频| 综合电影一区二区三区| 亚洲三级理论片| 亚洲免费大片在线观看|