From 9a175cc2cea75b98fc3c20381f58dcabf24ef529 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 29 Sep 2021 16:11:06 +0200 Subject: pasta: Allow specifying paths and names of namespaces Based on a patch from Giuseppe Scrivano, this adds the ability to: - specify paths and names of target namespaces to join, instead of a PID, also for user namespaces, with --userns - request to join or create a network namespace only, without entering or creating a user namespace, with --netns-only - specify the base directory for netns mountpoints, with --nsrun-dir Signed-off-by: Giuseppe Scrivano [sbrivio: reworked logic to actually join the given namespaces when they're not created, implemented --netns-only and --nsrun-dir, updated pasta demo script and man page] Signed-off-by: Stefano Brivio --- pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcap.c') diff --git a/pcap.c b/pcap.c index 6b795ff..9cf585f 100644 --- a/pcap.c +++ b/pcap.c @@ -153,7 +153,7 @@ void pcapmm(struct mmsghdr *mmh, unsigned int vlen) /** * pcap_init() - Initialise pcap file * @c: Execution context - * @index: pcap name index: passt instance number or pasta target pid + * @index: pcap name index: passt instance number or pasta netns socket */ void pcap_init(struct ctx *c, int index) { -- cgit v1.2.3