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

📄 find.h

📁 一个入侵检测小程序,用C编写,linux环境
💻 H
字号:
//find.h#ifndef __FIND_H__#define __FIND_H__/*INCLUDE*/#include"annids.h"/*DEFINE*/#define ETHER_HEADER_LEN 14/*VAR*/int pnp;//remember how many members of pp[] have been rewritenstruct ether_header *eh;struct ip *iph;struct ether_arp *arph;struct tcphdr *tcph;struct udphdr *udph;struct icmphdr *icmph;struct igmp *igmph;u_char *eth_index;//point to ether headu_char *ia_index;//point to ip or arp headu_char *tuii_index;//point to tcp,udp,icmp or igmp headint eth_type;  /************************************    int p_eth[96];  //pp[0]=1,pp[1]=0 behalf ip;pp[0]=0,pp[1]=1 behalf arp  int p_ip[160];//pp[2]~pp[161]  int p_arp[104];//WARNNING the segment has been divided!!!pp[2]~pp[105],pp[106]~[161]=0 andpp[162]~pp[229]=0  //pp[162],[163],[164],[165] behalf the four type  int p_tcp[64];//pp[166]~pp[229]  int p_udp[64];  int p_icmp[64];  int p_igmp[64];  ************************************/ /*FUNCTION*/void GetEthernet(char *,struct pcap_pkthdr *,u_char *);void GetRawIP(char *,struct pcap_pkthdr *,u_char *);void PrintIntru(int);void GetBit(u_char *,int);#endif

⌨️ 快捷键说明

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