我是靠谱客的博主 聪慧方盒,最近开发中收集的这篇文章主要介绍libnet下载和交叉编译,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

官网下载地址:

https://github.com/sam-github/libnet
http://sourceforge.net/projects/libnet-dev/
http://packetfactory.openwall.net/projects/libnet/index.html
无需使用CSDN的积分。
官网文档:
http://packetfactory.openwall.net/projects/libnet/dist/deprecated/manual/index.html
交叉编译:
./configure --prefix=/home/ubuntu/_install --host=arm-hisiv500-linux
make
错误修改方法:
1,…/include/libnet.h:117:10: macro names must be identifiers(说明…/include/libnet.h第117行有问题)
打开libnet.h,将117行#define 1注释掉,
2, libnet_build_ip.c: In function `libnet_build_ipv4′: error
打开include/libnet/libnet-headers.h
添加一行:
#define LIBNET_LIL_ENDIAN 1
3,链接错误,无法找到libnet_getgre_length符号表。修改如下:
打开 libnet_functions.h
inline u_int32_t libnet_getgre_length(u_int16_t fv);
将其中的inline 去掉即可。这是C99 与GCC对inline使用上的不同造成的。

最后

以上就是聪慧方盒为你收集整理的libnet下载和交叉编译的全部内容,希望文章能够帮你解决libnet下载和交叉编译所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(40)

评论列表共有 0 条评论

立即
投稿
返回
顶部