From 675174d4ba255383b213437e29b617d8f55dbc69 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 11 Oct 2021 12:01:31 +0200 Subject: conf, tap: Split netlink and pasta functions, allow interface configuration Move netlink routines to their own file, and use netlink to configure or fetch all the information we need, except for the TUNSETIFF ioctl. Move pasta-specific functions to their own file as well, add parameters and calls to configure the tap interface in the namespace. Signed-off-by: Stefano Brivio --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8a1b3c5..9f0e3bf 100644 --- a/Makefile +++ b/Makefile @@ -15,11 +15,12 @@ static: clean all passt: passt.c passt.h arp.c arp.h checksum.c checksum.h conf.c conf.h \ dhcp.c dhcp.h dhcpv6.c dhcpv6.h pcap.c pcap.h ndp.c ndp.h \ - siphash.c siphash.h tap.c tap.h icmp.c icmp.h tcp.c tcp.h \ - udp.c udp.h util.c util.h + netlink.c netlink.h pasta.c pasta.h siphash.c siphash.h tap.c tap.h \ + icmp.c icmp.h tcp.c tcp.h udp.c udp.h util.c util.h $(CC) $(CFLAGS) \ - passt.c arp.c checksum.c conf.c dhcp.c dhcpv6.c \ - pcap.c ndp.c siphash.c tap.c icmp.c tcp.c udp.c util.c -o passt + passt.c arp.c checksum.c conf.c dhcp.c dhcpv6.c pasta.c pcap.c \ + ndp.c netlink.c siphash.c tap.c icmp.c tcp.c udp.c util.c \ + -o passt pasta: passt ln -s passt pasta -- cgit v1.2.3