Code Monkey home page Code Monkey logo

lwip-linux's Introduction

lwip-linux

This is a version of lwip running on Ubuntu

1. Ubuntu Setup

Install libpcap-dev

sudo apt-get install libpcap-dev

2. Compile

Go to the folder ./Debug, then run:

make clean; make

3. Run tests

Must be run under root user

3.1 Echo server test

Under the header file ./lwip-2.0.2/test/linux/lwip.h, set TEST_ID to ECHO_SERVER

    #define TEST_ID 	ECHO_SERVER

Then, re-compile the source code, and run the lwip-linux app. Use puty to connect to server at port 6677.

3.2 TCP client test

Under the header file ./lwip-2.0.2/test/linux/lwip.h, set TEST_ID to TCP_CLIENT

    #define TEST_ID 	TCP_CLIENT

Then, re-compile the source code, and run the lwip-linux app.

Notes:

  • The remote server address is being hard code at "192.168.2.12", we can modify this address via macro TCP_REMOTE_SERVER_ADDR under ./lwip-2.0.2/test/linux/lwip.h.
  • Remote server port is 6677, it can be changed via macro TCP_REMOTE_SERVER_PORT.

4. Other notes

  • lwip-linux only supports 32 local server ports from 6677 to 6709. When we create a tcp server, please use the server port in this range.
  • For local client ports, the lwip-linux supports to allocate port in range from 49152 to 49184.

lwip-linux's People

Contributors

haohd avatar ekawahyu avatar f0provn 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.