GithubHelp home page GithubHelp logo

justm0rph3u5 / af_tsa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netflix/af_tsa

0.0 1.0 0.0 60 KB

License: Other

Shell 1.34% C 92.50% Makefile 2.30% Dockerfile 1.23% Meson 0.93% Jsonnet 1.69%

af_tsa's Introduction

AF_TSA

af_tsa is a kernel module that's meant to allow for a TCP or UDP socket that can be swapped out. Specifically, the swap it allows is for you to move the underlying "real socket" from one network namespace to another. It does this by just wrapping the underlying socket.

Development

Building

To build the kernel module:

make kbuild

Testing

To test the module (once loaded):

cd client
meson build
ninja -C build
sudo ./build/client

Installation

The only supported platform is Ubuntu Bionic running a 5.10+ kernel.

curl -s https://packagecloud.io/install/repositories/netflix/titus/script.deb.sh | sudo bash
apt-get install -y aftsa-multi

Caveats

af_tsa might have concurrency problems. We try to mitigate this by being clever about our GC, and making sure we come to a stop point before GCing an sk. The problem comes in when we swap the underlying sk. We can't do an af_kcm kind of thing - because we'll all of the built-in kernel setsockopts (since those directly modify struct sock, and there's no way to make them cascade).

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.