Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9133664
  • 博文数量: 1725
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19840
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1725)

文章存档

2024年(1)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: LINUX

2009-09-24 11:30:09

system interface for user-level packet capture
libpcap (Packet CAPture) provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc.

Since almost every system vendor provides a different interface for packet capture, and since there are several tools that require this functionality, we've created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application.


wget
tar zxf libpcap_0.9.8.orig.tar.gz
cd libpcap-0.9.8/
mkdir _install
CC=arm-none-linux-gnueabi-gcc CFLAGS=" -march=armv4t" ac_cv_linux_vers=2.6.31 \
./configure --host=arm-none-linux-gnueabi --prefix=$PWD/_install \
--with-pcap=linux

vi Makefile #修改 YACC 中的 bison 为 yacc

make shared
make install-shared
arm-none-linux-gnueabi-strip --strip-debug --strip-unneeded _install/lib/*

阅读(1599) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~