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

📄 ngrep.h

📁 ngrep strives to provide most of GNU grep s common features, applying them to the network layer. ngr
💻 H
字号:
/* * $Id: ngrep.h,v 1.14 2000/06/21 18:42:53 jpr5 Exp $ * * Copyright (c) 2000  Jordan Ritter <jpr5@darkridge.com> * * Please refer to the COPYRIGHT file for more information.  * */#define ETHHDR_SIZE 14 #define PPPHDR_SIZE 4 #define SLIPHDR_SIZE 16#define RAWHDR_SIZE 0#define LOOPHDR_SIZE 4 #define FDDIHDR_SIZE 21
#define ISDNHDR_SIZE 16
#define IEEE80211HDR_SIZE 24#ifndef IP_OFFMASK#define IP_OFFMASK 0x1fff#endif#define WORD_REGEX "((^%s\\W)|(\\W%s$)|(\\W%s\\W))"#define IP_ONLY "ip and ( %s)"

#ifndef TH_ECE
#define TH_ECE 0x40
#endif

#ifndef TH_CWR
#define TH_CWR 0x80
#endif
char *get_filter(char **);void process(u_char *, struct pcap_pkthdr*, u_char *);void dump(char *, int); void clean_exit(int);void usage(int);void version(void);int re_match_func(char *, int); int bin_match_func(char *, int);int blank_match_func(char *, int); int strishex(char *);void print_time_absolute(struct pcap_pkthdr *);void print_time_diff(struct pcap_pkthdr *);void dump_delay(struct pcap_pkthdr *);#ifdef WIN32
/*
 * In rare cases, PCAP_RESTART might need to be yyrestart instead.
 */
#define PCAP_RESTART pcap_restartvoid *GetAdapterFromList(void *, int);void PrintDeviceList(void);void yyrestart(void);int init_winsock(void);unsigned short swap_int16(short);#endif

⌨️ 快捷键说明

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