tcpdump是非常强大的网络安全分析工具,可以将网络上截获的数据包保存到文件以备分析。可以定义过滤规则,只截获感兴趣的数据包,以减少输出文件大小和数据包分析时的装载和处理时间。

版本:libpcap-1.4.0 和 tcpdump-4.4.0

编译方法:

上述需要的两个包要解压在同一个目录下,先编译libpcap,再编译tcpdump。

libpcap-1.4.0:

1. make distclean
2. ./configure --host=arm-hisiv300-linux --with-pcap=linux
3. make 
4. object file: libpcap.a /libpcap.so.1.4.0

拷贝上面库到tcpdump-4.4.0目录下

tcpdump-4.4.0:

sh4-linux / arm-hisiv200-linux:
1. make distclean
2. ./configure --host=arm-hisiv300-linux LDFLAGS=-static
3. make 
4. object file: tcpdump
arm-hisvi300-linux-strip tcpdump

注:arm-hisiv300-linux交叉编译器

使用方法:见百度,一大摞

编译可能出现的错误:

checking for local pcap library... ./../libpcap-1.4.0/libpcap.a
checking for pcap-config... ./../libpcap-1.4.0/pcap-config
checking for pcap_loop... no
configure: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
config.log file in your report.  If you have downloaded libpcap from
tcpdump.org, and built it yourself, please also include the config.log
file from the libpcap source directory, the Makefile from the libpcap
source directory, and the output of the make process for libpcap, as
this could be a problem with the libpcap that was built, and we will
not be able to determine why this is happening, and thus will not be
able to fix it, without that information, as we have not been able to
reproduce this problem ourselves.
解决方法:
将libpcap中的config.h
注释:// #define PCAP_SUPPORT_CANUSB 1

现象2:

版本:libpcap-1.9.0 和 tcpdump-4.9.2
交叉编译器:aarch64-himix100-linux
checking for local pcap library... ../libpcap-1.9.0/libpcap.a
checking for pcap-config... ../libpcap-1.9.0/pcap-config
checking for pcap_loop... no
configure: error: This is a bug, please follow the guidelines in CONTRIBUTING and include the
config.log file in your report.  If you have downloaded libpcap from
tcpdump.org, and built it yourself, please also include the config.log
file from the libpcap source directory, the Makefile from the libpcap
  urce directory, and the output of the make process for libpcap, as
this could be a problem with the libpcap that was built, and we will
not be able to determine why this is happening, and thus will not be
able to fix it, without that information, as we have not been able to
解决方法:
libpcap-1.9.0 和 tcpdump-4.9.2
vi config.sub
机器类型:去掉aarch64 | aarch64_be \
           添加aarch64-himix100

嵌入式工具——tcpdump相关推荐

  1. 抓包工具tcpdump及分析工具wireshark

    一.抓包工具tcpdump tcpdump是一个用于截取网络分组,并输出分组内容的工具,简单说就是数据包抓包工具.tcpdump凭借强大的功能和灵活的截取策略,使其成为Linux系统下用于网络分析和问 ...

  2. 【网络知识】4. linux抓包工具tcpdump的使用

    linux抓包工具tcpdump的使用 linux可视化抓包工具可以使用wireshark,对于不能可视化的,还是得使用tcpdump tcpdump -h # 查看用法 最简单的用法: tcpdum ...

  3. Linux下的网络协议分析工具-tcpdump快速入门手册

    TCPDUMP简介 在传统的网络分析和测试技术中,嗅探器(sniffer)是最常见,也是最重要的技术之一.sniffer工具首先是为网络管理员和网络程序员进行网络分析而设计的.对于网络管理人员来说,使 ...

  4. 网络数据采集分析工具tcpdump定义抓包过滤器

    Unix 下的一个 网络数据采集分析工具 -- Tcpdump,也就是我们常说的抓包工具. 与它功能类似的工具有 wireshark ,不同的是,wireshark 有图形化界面,而 tcpdump ...

  5. Linux抓包工具tcpdump使用小结

    Linux抓包工具tcpdump使用小结 简介及安装 tcpdump命令详解 tcpdump参数 tcpdump表达式 tcpdump 命令演示 常用抓包命令组合 tcpdump抓包实测 理解抓取的报 ...

  6. linux服务器udp抓包工具,Linux下抓包工具tcpdump使用介绍

    点评:在传统的网络分析和测试技术中,嗅探器(sniffer)是最常见,也是最重要的技术之一,本文将介绍Linux下抓包工具tcpdump使用,需要的朋友可以参考下 在传统的网络分析和测试技术中,嗅探器 ...

  7. linux5.8抓包,Linux 抓包工具 tcpdump

    Linux 抓包工具 tcpdump 1.概述 用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具. ...

  8. linux下 抓包工具下载,Linux下抓包工具tcpdump使用介绍

    Linux下抓包工具tcpdump使用介绍 发布时间:2012-11-30 17:11:39   作者:佚名   我要评论 在传统的网络分析和测试技术中,嗅探器(sniffer)是最常见,也是最重要的 ...

  9. 嵌入式工具 | 几款实用的C/C++在线编译器

    关注+星标公众号,不错过精彩内容 作者 | strongerHuang 微信公众号 | strongerHuang 作为程序员,使用编译器是必备技能,但是从入门到放弃,基本上就是在开发环境安装.配置这 ...

  10. Linux抓包工具tcpdump详解

    原文链接 tcpdump是一个用于截取网络分组,并输出分组内容的工具,简单说就是数据包抓包工具.tcpdump凭借强大的功能和灵活的截取策略,使其成为Linux系统下用于网络分析和问题排查的首选工具. ...

最新文章

  1. TMS Scripter importtool的使用
  2. 产品开发的 11 宗罪
  3. 二叉树中序遍历方法实现
  4. (转)HBase二级索引与Join
  5. 自动调整速率的Actor设计模式
  6. Python中的字典排序
  7. 3.db2性能和优化
  8. legend3---laravel验证码使用
  9. JavaScript String
  10. 插入排序、选择排序、快速排序以及归并排序(附Python代码)
  11. 相关疑惑解决,java线程虚假唤醒等等问题
  12. Win 10 没有 Hyper-V 解决方案
  13. Spring【DAO模块】就是这么简单
  14. linux麒麟安装教程,优麒麟使用教程第四期:Linux平台U盘启动盘制作
  15. iOS 获取本地视频的缩略图
  16. 计算机无法读出u盘,教你win10系统电脑无法识别u盘的应对办法
  17. c语言指数公式_c语言指数函数详解
  18. ​【汇总】CV 图像分类常见的 36 个模型
  19. 翻车率贼高的一个小题目
  20. 系统架构的基本设计原则

热门文章

  1. day07 深浅拷贝
  2. POJ 3518 Prime Gap(素数)
  3. SQL拼接自己需要的字符串
  4. mysql批量执行sql文件
  5. apt-get 与 yum 的区别
  6. 【吐槽】火车票一票难求啊
  7. Query and transform XML
  8. 【转】2011年考研备战时间表
  9. 运行的程序暂停_黄岩人注意!2天后,这项重要业务系统将暂停运行!
  10. Java常用排序算法