From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: Re: [PATCH 7/8] Use explicit --netns option rather than multiplexing with PID Date: Tue, 30 Aug 2022 10:25:59 +0200 Message-ID: <20220830102559.568126a4@elisabeth> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8650230358155636272==" --===============8650230358155636272== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tue, 30 Aug 2022 11:12:50 +1000 David Gibson wrote: > On Mon, Aug 29, 2022 at 09:16:50PM +0200, Stefano Brivio wrote: > > On Fri, 26 Aug 2022 14:58:38 +1000 > > David Gibson wrote: > > =20 > > > [...] > > > > > > +++ b/passt.1 > > > @@ -15,7 +15,10 @@ > > > [\fIOPTION\fR]... > > > .br > > > .B pasta > > > -[\fIOPTION\fR]... [\fIPID\fR|\fIPATH\fR|\fINAME\fR] > > > +[\fIOPTION\fR]... [\fIPID\fR] > > > +.br > > > +.B pasta > > > +[\fIOPTION\fR]... \fB--netns\fR [\fIPATH\fR|\fINAME\fR] > > > =20 > > > .SH DESCRIPTION > > > =20 > > > @@ -59,7 +62,7 @@ or with the \fBqrap\fR(1) wrapper. > > > equivalent functionality to network namespaces, as the one offered by > > > \fBpasst\fR for virtual machines. > > > =20 > > > -If PID, PATH or NAME are given, \fBpasta\fR associates to an existing = user and > > > +If PID or --netns are given, \fBpasta\fR associates to an existing use= r and > > > network namespace. Otherwise, \fBpasta\fR creates a new user and netwo= rk > > > namespace, and spawns an interactive shell within this context. A \fIt= ap\fR > > > device within the network namespace is created to provide network conn= ectivity. > > > @@ -445,7 +448,14 @@ Default is \fBauto\fR. > > > Target user namespace to join, as a path. If PID is given, without thi= s option, > > > the user namespace will be the one of the corresponding process. > > > =20 > > > -This option requires PID, PATH or NAME to be specified. > > > +This option requires --netns or a PID to be specified. > > > + > > > +.TP > > > +.BR \-\-netns " " \fIspec > > > +Target network namespace to join, as a path or a name. A name is trea= ted as > > > +with \fBip-netns(8)\fR as a equivalent to a path in \fI/run/netns\fR. = =20 > >=20 > > an equivalent (I can fix this up on merge). =20 >=20 > Oops, sorry. I think I meant to say just "as equivalent", which I > think reads better than "as an equivalent". Oh, right, then I'll change it to that. --=20 Stefano --===============8650230358155636272==--