diff options
| author | yangwei <[email protected]> | 2024-11-12 13:24:11 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-11-12 14:22:04 +0800 |
| commit | 421d4ed459f6656f7f67c301530891e332b49959 (patch) | |
| tree | 8f59efe9755f458d9570f6900883d0cf4027378a /src | |
| parent | bff48cc28a94e72540c1cdb65b3fc55e892b0201 (diff) | |
🔧 build(integrate tcpdump_mesa): in toolsFeature-merge-jump-layer
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/MESA_jump_layer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/MESA_jump_layer.cpp b/src/common/MESA_jump_layer.cpp index b603949..c8cbd11 100644 --- a/src/common/MESA_jump_layer.cpp +++ b/src/common/MESA_jump_layer.cpp @@ -1,14 +1,11 @@ -#include "stream.h" #include "mesa_net.h" #include "deal_ipv6.h" /* Linux OS std */ #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <stdarg.h> #include <unistd.h> #include <assert.h> -#include <errno.h> #include <dlfcn.h> #include <linux/if_ether.h> #include <linux/limits.h> @@ -23,7 +20,6 @@ #include <linux/version.h> #include <net/if.h> #include <sys/ioctl.h> -#include <signal.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/prctl.h> @@ -1429,6 +1425,9 @@ const void *MESA_net_jump_to_layer_greedy(const void *raw_data, int raw_layer_ty return MESA_jump_layer_greedy(raw_data, raw_layer_type, expect_layer_type); } +#include <netinet/tcp.h> +#include <netinet/udp.h> + /* ģ��tcpdump��ʽ: 192.168.40.137.22 > 192.168.36.40.49429 */ const char *MESA_jump_layer_ipv4_ntop(const struct ip *ip4_hdr, char *out_buf, int buf_len ) { |
