mirage / synjitsu

TCP connection starter for Mirage unikernels
7 stars 3 forks source link

Add support for sending gARP from Jitsu #1

Closed MagnusS closed 9 years ago

MagnusS commented 9 years ago

This patch adds a Conduit Vchan_direct server that listens for mac/ip pairs on port "synjitsu". Jitsu can be configured to connect to it with the "--synjitsu=[uuid/domain name]" parameter.

When Jitsu boots a unikernel its mac/ip pair is sent to synjitsu and synjitsu sends a gARP while the unikernel is booting. This should allow synjitsu to receive SYNs on behalf of the unikernel. When the unikernel is ready it will send its own gARP.

samoht commented 9 years ago

Thanks! Is there some kind of automated testing that we can put in place in Travis before merging this?

MagnusS commented 9 years ago

I've tested it with jitsu and tcpdump in my local network, but not sure how we could automate it right now. We can replace netif with vnetif, but do we have a vchan alternative?

samoht commented 9 years ago

There is a in-memory vchan that @djs55 uses to test the vchan implementation. See https://github.com/mirage/ocaml-vchan/blob/master/lib/in_memory.ml

samoht commented 9 years ago

Thanks!