From 19d254bbbb3ab319d15891ff7287f5182980c105 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 21 May 2021 11:14:51 +0200 Subject: passt: Add support for multiple instances in different network namespaces ...sharing the same filesystem. Instead of a fixed path for the UNIX domain socket, passt now uses a path with a counter, probing for existing instances, and picking the first free one. The demo script is updated accordingly -- it can now be started several times to create multiple namespaces with an instance of passt each, with addressing reflecting separate subnets, and NDP proxying between them. Signed-off-by: Stefano Brivio --- pcap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcap.h') diff --git a/pcap.h b/pcap.h index 00bafee..abca097 100644 --- a/pcap.h +++ b/pcap.h @@ -1,2 +1,2 @@ void pcap(char *pkt, size_t len); -void pcap_init(void); +void pcap_init(int sock_index); -- cgit v1.2.3