mirror of
https://passt.top/passt
synced 2025-05-19 07:55:34 +02:00
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 <gscrivan@redhat.com> [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 <sbrivio@redhat.com>
This commit is contained in:
parent
ab32838022
commit
9a175cc2ce
12 changed files with 240 additions and 79 deletions
2
pcap.c
2
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue