⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spo_alert_unixsock.h

📁 Linux snort-2.4.4源代码
💻 H
字号:
/* $Id$ *//*** Copyright (C) 1998-2002 Martin Roesch <roesch@sourcefire.com>** Copyright (C) 2000,2001 Andrew R. Baker <andrewb@uab.edu>**** This program is free software; you can redistribute it and/or modify** it under the terms of the GNU General Public License as published by** the Free Software Foundation; either version 2 of the License, or** (at your option) any later version.**** 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.*//* This file gets included in plugbase.h when it is integrated into the rest  * of the program.  Sometime in The Future, I'll whip up a bad ass Perl script * to handle automatically loading all the required info into the plugbase.* * files. */#ifndef __SPO_ALERT_UNIXSOCK_H__#define __SPO_ALERT_UNIXSOCK_H__#include <sys/types.h>#include <pcap.h>#include "event.h"/* this struct is for the alert socket code.... */typedef struct _Alertpkt{    u_int8_t alertmsg[ALERTMSG_LENGTH]; /* variable.. */    struct pcap_pkthdr pkth;    u_int32_t dlthdr;       /* datalink header offset. (ethernet, etc.. ) */    u_int32_t nethdr;       /* network header offset. (ip etc...) */    u_int32_t transhdr;     /* transport header offset (tcp/udp/icmp ..) */    u_int32_t data;    u_int32_t val;  /* which fields are valid. (NULL could be        * valids also)*                                  */    /* Packet struct --> was null */#define NOPACKET_STRUCT 0x1    /* no transport headers in packet */#define NO_TRANSHDR    0x2    u_int8_t pkt[SNAPLEN];    Event event;} Alertpkt;void AlertUnixSockSetup(void);#endif  /* __SPO_ALERT_UNIXSOCK_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -