merd: ARP and DHCP handlers, connection tracking fixes

With this, merd provides a fully functional IPv4 environment to
guests, requiring a single capability, CAP_NET_RAW.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio
2020-07-20 16:27:43 +02:00
parent fa2d20908d
commit b439984641
9 changed files with 673 additions and 204 deletions

1
arp.h Normal file
View File

@@ -0,0 +1 @@
int arp(struct ctx *c, unsigned len, struct ethhdr *eh);