Giter VIP home page Giter VIP logo

erouter's Introduction

erouter

WinPcap实现的简单路由器,能够通过ping测试和tracert测试。

特性

目前支持有:

  • MAC-IP表的动态维护
  • ICMP超时报文回送
  • 静态路由表

目录

  • ./src -- 源文件
    • ./src/config.h --头文件
    • ./src/Framer.h/cpp -- 以太网数据帧处理
    • ./src/Router.h/cpp -- 路由器头文件
    • ./src/Interactor.h/cpp -- 交互者的头文件
    • ./src/main.cpp -- 程序入口

使用

本仓库只包含了源文件和示例输出文件,由于Visual Studio项目过大,WinPcap目录每台电脑都不同,因此不提供项目文件。

运行示例输出文件的要求:

  • Windows Server 2003+
  • 安装了VC++运行时环境和WinPcap驱动

编译本项目的要求:

  • WIndows Server 2003+
  • Visual Studio 2015+
  • 安装了MSVC套件
  • WdpPack开发者目录

由于Visual会生成一些警告组织程序的正常编译,建议在预处理器中定义WPCAP;HAVE_REMOTE;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS。如果幸运的话,你现在可以成功编译本仓库。

Usage

The repository doesnot contain any project directory because one Visual Studio's project directory is too large.

To run the output file, your computer must have installed VC++ run time and WinPcap, both of which are easy to acquire online.

To Compile this code, your platform must be windows. It will be better if you are using Visual Studio 2019. You must first include the WpdPack directory (Provided by WInPcap) in your working project. To ignore possible warnings generated by MSVC compiler, you're advised to add defines WPCAP;HAVE_REMOTE;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS in preprocesser settings. And then, if lucky, you can compile this code now.

erouter's People

Contributors

allinleeyl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.