支持-g参数, 可以按最内层IP,PORT过滤, 支持BPF过滤规则.

This commit is contained in:
lijia
2018-11-14 21:09:41 +08:00
parent a6a34b3ba4
commit ffef9008ed
8 changed files with 2327 additions and 25 deletions

5
tcp.h
View File

@@ -32,6 +32,8 @@
*
* @(#)tcp.h 8.1 (Berkeley) 6/10/93
*/
#ifndef _tcpdump_tcp_h
#define _tcpdump_tcp_h 1
typedef uint32_t tcp_seq;
/*
@@ -157,3 +159,6 @@ struct tcphdr {
#ifndef REDIS_PORT
#define REDIS_PORT 6379
#endif
#endif