以下编译基于windows下visual studio 2013

(注:编译安装完成之后发现与网上的arp教程中使用的libnet不是一个版本,这个版本太老了,最后没有使用。

网络教程上使用的是libnet-1.2 左右的版本,而且需要事先安装配置winpcap!)

从souceforge上下载libnet0.10.11.zip

http://sourceforge.net/projects/libnet/files/libnet/

解压之后目录结构:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAARsAAADRCAIAAABzS4EQAAAOBElEQVR4nO3d728b9QHH8fsLeN4HPO/zSEi1eLAK0MQWylRNlTbS4kB3GxoLhbEfRMoIbFCCdMPdg00ZEtLIqLK1SynJDHSMNLQJadp0mDZNWydpmsRNm15K2/wideH24Hw/fXYuzrffOyfvl74PbNcX25E/+n7vmvucYgAQR7kAQBwl6kgD6wqJAkQiUYBIJAoQyZMoXddramp0Xc9kMvfff38mk1lcXNy6dWtXV1dU7w+oLiQKECk4UfYja08UmcSGQqIAkUqu+jZv3qzrupmHd999d9OmTYqiKIpiZkPX9c2bN7/22mvmg5qm2T/Bfqamae67W7duXVxcjOAjAhKFStSmTZvMiaurq8u8bUYlmUwahmHvdJkxy2QyhmtqYo7ChhIqUXYe7Lu+8Dz++OOZTKarq0vx0jSNRGFDEZyo4qUdicKGEipR5urOMAxN0+xVX3GizKWgHZ7GxsbiTALrW6hEqapqruLsHarARBmGkclk7rvvPvcxDMMwNE3jyAQ2CP4KCRCJRAEikShAJBIFiESiAJFIFCASiQJEogsJEIk5ChCJRAEikShAJBIFiESiAJFIFCASiQJEIlGASMrNlRiGsbS0FPX7BKoDiVpvvvPUi1G/hQ2NRK0rD+56YcfbR3e98beo38jGRaLWjwd/9Gz9n9Ov91/fd1L/a7o36rezQZGodeKhJ5/be7j3yMT8v0dvH5+cH7iycGxqIeo3tRGRKECkQqKSySSJAtZOMeNkIlHAGilJr3uWqCEtue/AdOl/n+5uSDbWJtv7DaO/tVEbXPMLAlFQ7CCVCpUhIFFDWrKxtmg0dM4YhjHZua/WypJhmNGybgPVRnFH6F4kygyMf86Z7m5o6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CJ5hZAJJpbAJE44xAQiUQBIpEoQCQSBYhEogCRaG4BRKK5BRCJ5hZApJg3t1Sm1B+kF667pqbc18bmLwMhUsybWyoTnCjvX9uSKNwTMW9uqUxwooIuYE2iIFjMm1sqQ6IQmfg3tyRS6cJlp9W0c2lqJxsBF6V2JcqqpXCqXhQ17blgtusi8c5Vr7ngNSoU/+YWxdnlsb/Y7l0i1fr6Oy0u1j+nVXf0nDkqIFG+a9Erapoz7lGJ+De3JFyJCbxdPJPY5/l68lAuUa4pzDVNmY8WLRWB0uLf3FI2UdlUQinOifloIuENwwqJKhkcM7DkCqHEv7mlbKJcj7laXNzLNs9+UtlVn/uZhXKLVPGOGVBW/Jtbyq/6nBVfQlWDGsic3a+yiQo+CkF1LVaL5hZAJJpbAJFobgFE4oxDQCQSBYhEogCRSBQgEokCRKK5BRCJ5hZAJJpbAJHWZXMLEJl12dwCRCbmzS0VnEbBmReIUsybW0gUqkysm1tU70nqIcpV0r5NqF6BZDFvbvGdOximXMVXhESQIFXMm1tcmQhbrlJ8Ai8VEZAn5s0t3kSFKlcpnpioXoE8MW9u8U84IcpVPKs+qlcgWcybW6xDC/6alnLlKu5NqF6BZDS3ACLR3AKIRHMLINL/AVG+SoylJGD9AAAAAElFTkSuQmCC" alt="" />

源码文件在lib目录下;

batfiles中是编译用的脚本

msvcmake.bat

@echo off
rem First set up the helper batch files cd batfiles
copy msvcobj.bat obj.bat
copy msvclib.bat lib.bat
copy msvcexe.bat exe.bat
rem Now do the generic build
if "%1"=="" goto all
goto %1 :all
call makeall
goto end
:lib
call makelib
goto end
:tests
call maketest
goto end
:examples
call makeex
goto end :end
cd ..

msvcobj.bat

@echo off
cl /DTARGET_MSVC /MD /c /O2 /nologo /I../include /Iinclude %1.c /Fo%1.obj

msvclib.bat

@echo off
lib /NODEFAULTLIB /out:%1.lib %2.obj %3.obj

msvcexe.bat

@echo off
cl /DTARGET_MSVC /MD /O2 /nologo /I../include %1.c ../lib/libnet.lib wsock32.lib

--------------编译方法---------------

1.将batfile目录下的msvcmake.bat复制到上层目录(libnet)下,双击运行。

会在batfiles目录下生成obj.bat,lib.bat,exe.bat三个文件。

但是提示cl不是内部或者外部命令。本文适用的是vs2013,cl.exe位于如下目录下:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbQAAAD4CAIAAAALu4SyAAAgAElEQVR4nO2d728bx5nHifsD8vryou+tdwFa4AAiaE++tihaF0bQ9AIndqoeUqIIzjbQnlvEqWsmisUGKWvSbWrLqQraRXpKLSEWJLOiYldVfUZVX42CSBmkIXLJ1RdrJdGSKP4Uf+29WO7u7Mwzy5+7JMXvBwNDWs7sDpfcj56ZWe/jUQEAAAh4et0BAADoRzx/AwCAoaSBHN1xMAAAdE5Do3VxV5AjAGBggBwBAIAAcgQAAIL+lWM8Hv/Upz4Vj8c76FIL5PP50dFRj8ezsLDQUsOu9DOVSn36059OpVKd7IRkYWFhdHQ0n8+7fD73E9p3Q/xi4JTub5qU4/Lycue7MuWofdseeeQR7ouVSqUeffTRnlzMwWBwbGzMpsLY2BhXIRgMjo6Orq6uOidH7YR4PJ42rK3RoRyDwWAwGGT3pnVG/OzY3pKvdojs/OfzedV6ouw/xzaAHIeTJuU4Pj4ejUY73BUvR6/Xy154qqoGg0GPx2N8491kbGxM64zsSlhYWHj00UcNf8mqtQcpR+2C1w6Rz+effvrpVCrV6nENObbapXg8/sgjj3g8HuMzSqVSTz/9tLYr7myo+gnRKouvdo7N+deUbZyThYUF7nvVId39rMGgYG+0P/3pT1NTUz/60Y/8fr/f73/rrbfa3pUqyvHcuXMHDhxgv+6HDx8+d+5cf8qRVZWqqvF4nO18h5ByjMfjhw8f5k6FO3I0TGecFrHDBw4cYIMm9oQ030m/399kl2Tnn9vePM0f2iE5Nt8B0BNsjPbHP/5xfHx8fHz8ypUrL730kt/vn5mZaW9XGrwcFxYW2GtPu4yvXbtmDAONi40dNAWDQa351atXjTE4W4GNL7RQlN1I1hwbG/MIiE5hR3bGMJztJ3c49iXuZ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LDlCsOQYEuXownkCAYXJNhyiWFIsAU5gv0KEmw5yDAk2GKH1eyDbIWEWXwrpMQC/Q0SbDnJkCTYIuRIJMyyNEFKLNDfIMGWwwxBgi1p5GhUELyGlFigv0GCLRcYggRb7ckRKbFAv4IEW00075xhSbBFDavphFlIiQX6GyTYQoItls4SbEkiRzphFlJigf4GCbZcAQm2AABIIkOABFsAALjRWSBHAAAggBwBAIAAcgQAAALIEQAACCBHAAAggBwBAIAAcgQAAALcBA4AAARIsAUA2L8MTYItEjyQEQAgY1gSbJFAjmBAQIItVxjOBFskkCMYCJBgyyWGM8EWCeQIBg4k2HKQ4UywFfV5vKGQz5rbgJGjNccMsx+k3AL9BBJsOclwJtiK+jzs02pN1/milqfaWneClFugn0CCLYcZzgRbnMIYOfrETIT6PpByC/QNSLDlAsOZYEsqR4/XS69oI+UW6BuQYKuJ5p0zpAm25JFj1DqViJRboN9Agi0k2GLpdoItWznWK3g8Hl8UKbdAv4EEW66ABFsAACSRIUCCLQAA3OgskCMAABBAjgAAQAA5AgAAAeQIAAAEkCMAABD8P3Gj9OHixfk2AAAAAElFTkSuQmCC" alt="" />

2.将C编译器的路径   C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin;

添加到环境变量PATH中。

3.新建环境变量include

将以下两个路径添加进include:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include

4.新建环境变量lib

将以下两个环境变量添加进lib:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib

5.双击make.bat成功编译出libnet.lib库

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAc4AAAC+CAIAAAAz0XiSAAAcd0lEQVR4nO2d3W8TV97H8xf0vhe9537vor14+qZVd1m6QiukZ1to+rLerbZJu93uSyNFNc02hkpuHS6eKq2o3FagdAnQNMHEKWBS3pIUs7gQQmISEhKICQby4pfEdj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U+YxqoFgBQMaBaAABwHKjWGVQTJ1Rmzi7McgtA9eJC1S49XjZ8QLXA/ZQb48hPRbQe48jeRr05Zz4anUbMfRocyG6YyWqCdkJFt6mWIrWaMq3aElTFb7IF889CtYCkzBhHvVREazGO/G1U66ipsYwnWeQeV1/PdpMI+5p9Pno6s+I5uVi11ChBR0cH07ZQLagnrMc46qUiWopx1NlGWcfJi2TtStVOs0+9AzlEIuxrDoapEj4R9vnC4aDLVUsplWlbrWo9dNQMI1RRPaNsSKeJslCd1+AJKQlm/Plp7Q2UBHVPCTGOOvkxlmMcOdto+sjNYlBl+Ors09SB7IZ1UPGJOnnCnaoVS1r5H1rbGlW1rFBFRtVIzwuuCr9lqZYpRg02BkqCuqekGEedOtZqjCNvGwr2WqLzzCENqmNmDmQ3RG4Q9TKT86UHXapaZg1rQbXsUEVxKWkxdRNyjeqymDavQWDtTdtY59/mAiVBfVN6jCOvqrUa48jbRoN2Ld151qbMkPOtUa38VSAfXt0Pd6qWHK4tUbXculBUHO1R66rV7k3bmPNv84GSoI4pK8aR406LMY7cbZi9pe9+0LsYRu0zGDR9ILuhM83CWvsnwr7mZneqttyqlhmqGA8E6B//vCaEC3mq1e5NuS3MxkBJUK+UG+NotFCNYYyjYKmqZe5DNVart88tqmoF6Q41TUUfCzb7XDqAwKxqDf+EofiTnM5sVI/Aai9FUeOq4vOAcVVL7828ai0FSoL6pPwYR+3CMmIcBUuqZXa+BlSrfqL+inKnaplVLaabAaAcEC5WDi5U7Rb8GS4A7gemLQu3qRZTJgIAqhBXqRYAAKoTqBYAABwHqgUAAMeBagEAwHH+HzbYPXFjnVY/AAAAAElFTkSuQmCC" alt="" />

在core和drivers目录下生成了obj文件。

-------------使用-------------------

将inlcude/libnet.h和lib/libnet.lib分别放到

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include 和

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib        目录中

然后在代码中显式调用相关库:

#pragma comment(lib,"libnet.lib")
#pragma comment(lib,"wsock32.lib")

windows下编译libnet0.10.11的更多相关文章

  1. windows下编译配置libnet-1.2-rc3

    1.下载winpcap(一个底层驱动,可以嗅探.过滤网卡数据包,发包).exe安装包,傻瓜一步式安装 2.下载WpdPack_4_1_2,这个是winpcap的开发者包,解压之后只需要配置相关路径. ...

  2. 在Windows下编译FFmpeg详细说明

    MinGW:一个可自由使用和自由发布的Windows特定头文件和使用GNC工具集导入库的集合,允许你生成本地的Windows程序而不需要第三方C运行时 MinGW,即 Minimalist GNU F ...

  3. osg for android学习之一:windows下编译(亲测通过)【转】

    1. 首先需要一个OSG for android的环境 (1)NDK 现在Eclipse 对NDK已经相当友好了,已经不需要另外cygwin的参与,具体可以参考 Android NDK开发篇(一):新 ...

  4. 在Windows下编译Emacs

    在Windows下编译Emacs Windows下编译好的Emacs主要有两个版本,一个来自http://nqmacs.sourceforge.net/,另一个来自http://www.crasseu ...

  5. Windows下编译最新版ChezScheme

    据说ChezScheme是最快的神级编译器,一秒钟几百万行,王垠说的2秒内编译自身绝不是夸张(看这里<揭秘Chez Scheme>,Scheme中文社区).ChezScheme由美国印第安 ...

  6. Windows下编译 Hadoop

    Windows下编译 Hadoop-2.9.2 系统环境 系统: Windows 10 10.0_x64 maven: Apache Maven 3.6.0 jdk: jdk_1.8.0_201 Pr ...

  7. [转] Windows下编译OpenSSL

    简述 OpenSSL是一个开源的第三方库,它实现了SSL(Secure SocketLayer)和TLS(Transport Layer Security)协议,被广泛企业应用所采用.对于一般的开发人 ...

  8. windows下编译php7图形库php_ui.dll

    CSDN博客 具有图形化编程才有意思,这几天看到了php ui 图形扩展,只是现在只能下载php 7.1的 本次教程编译php7.2.6的 php ui 要是linux下编译起来比较简单 但是 win ...

  9. 一步步实现windows版ijkplayer系列文章之四——windows下编译ijkplyer版ffmpeg

    一步步实现windows版ijkplayer系列文章之一--Windows10平台编译ffmpeg 4.0.2,生成ffplay 一步步实现windows版ijkplayer系列文章之二--Ijkpl ...

随机推荐

  1. 数组增、删方法(push()-unshift()-pop()和shift())

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  2. 玩转orangpi 之frpc远程管理+pcd8544(nokia5110 屏幕) 显示运行状态

    玩转orangpi 之frpc远程管理+pcd8544(nokia5110 lcd) 显示运行状态. 物件: orangepi一套(电源,网线,orangepiPC)110元 nokia 5110 l ...

  3. Django基础之中间件的执行流程

    当请求到达中间件以后,先按照正序执行每个注册中间件的process_request方法,process_request方法返回的值是None,就依次执行. 如果返回的值是HttpResponse对象, ...

  4. Hadoop环境搭建|第一篇:linux操作系统安装

    一.安装工具及文件 优盘:8G(非kingston优盘) 制作启动盘工具:Universal_USB_Installer 操作系统:CentOs操作系统 二.注意事项 安装过程的详细步骤,这里就不再赘 ...

  5. map初步(由ABBC--->A2BC)

    1.题目: Given a string containing only 'A' - 'Z', we could encode it using the following method: 1. Ea ...

  6. 中国萌兔-月饼工厂流水线 -万圣节萌宠-月饼售罄后续-B站东予薏米

    B站(Blibli)up主,东予薏米.下面画的五只兔兔,两只狗狗,一只猫猫都是她家的 啊!有个会画画的主人真是幸福- 蹦迪的那个兔兔头昏脑胀,敷了冰袋和膏药哈哈哈哈,好可爱! 下班了下班了~今天真是太 ...

  7. BufferedWriter中write与close函数使用

    BufferedWriter 是一个缓冲字符输出流,可以将要输出的内容先缓冲到一个字符数组中,等字符数组满了才一次性写到输出流内,默认的字符数组长度为8192.使用BufferedWriter 时需要 ...

  8. 免费版CloudFlare CDN基本设置参考

    CDN有很多,网上都有介绍,用户比较多的CloudFlare CDN大家都知道,配置起来也比较简单,合理的配置,才能提升网站的速度和网站安全.不同的网站需求配置不一样,以下是我的配置情况,仅供参考. ...

  9. TransitionDrawable

    ayerDrawable的一个子类,TransitionDrawable只管理两层的Drawable!两层!两层! 并且提供了透明度变化的动画,可以控制一层Drawable过度到另一层Drawable ...

  10. Swift 析构过程

    在一个类的实例被释放之前,析构函数被立即调用.用关键字deinit来标示析构函数,类似于初始化函数用init来标示.析构函数只适用于类类型. 析构过程原理 Swift 会自动释放不再需要的实例以释放资 ...