Giter Club home page Giter Club logo

netstack's Introduction

netstack: TCP/IP network stack implementation in userland

Build Status

The homepage for this project is hosted on GitHub: https://github.com/frebib/netstack

IF YOU ARE USING THIS CODE FOR ANY PURPOSE, PLEASE USE THE LATEST CODE FROM GITHUB ABOVE PRs and issues are always accepted and I'm happy to help with squashing on of the millions of bugs I left lying around :)

  • libnetstack - A full userspace network stack implementation in a library
  • libnshook - A bootstrap library to inject netstack into a dynamic executable at runtime
  • netstack-run - A bootstrap script to preload libnshook and libnetstack at runtime, for convenience
  • httpget - A basic GET request tool given a host and port
  • netd - A network daemon to process and control network communications, using libnetstack

It should be noted that until a far distant time, there is no guarantee of API or ABI stability. Most things can and likely will change, until a stable release (if ever).

Building

GNU Make

# Build everything
make
# Install to the local filesystem
sudo make install PREFIX=/usr/local

Available targets are as follows:

  • libnetstack.so - Network stack library
  • libnshook.so - Injection library
  • netd - Main binary, will also build libnetstack.so
  • build - Same as netd
  • doc - Builds man-pages and documentation
  • install - Installs everything into the filesystem

CMake

mkdir build
cd build
cmake ..
make

Optional features

Until such time that automated detection of extra features is added through autotools/autoconf, they have to be specified manually for now.

GNU extensions such as named pthreads can be enabled with

CFLAGS=-D_GNU_SOURCE make ..

netstack's People

Contributors

frebib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mzh741 clownsw

netstack's Issues

Don't drop first ICMP reply because of ARP cache miss

Ideally ICMP requests should wait around for a short while so an ARP request can be made to identify the hardware address of the recipient device. Currently if there is an ARP cache miss, the first request gets dropped in favour of an ARP request

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.