[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230416224316.xlvgjor65nejldwh@begin>
Date: Mon, 17 Apr 2023 00:43:16 +0200
From: Samuel Thibault <samuel.thibault@...-lyon.org>
To: Dominique Martinet <asmadeus@...ewreck.org>
Cc: James Chapman <jchapman@...alix.com>, tparkin@...alix.com,
edumazet@...gle.com, davem@...emloft.net, kuba@...nel.org,
pabeni@...hat.com, corbet@....net, netdev@...r.kernel.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] PPPoL2TP: Add more code snippets
Dominique Martinet, le lun. 17 avril 2023 07:26:41 +0900, a ecrit:
> > +The ppp<ifunit> interface can then be configured as usual with SIOCSIFMTU,
> > +SIOCSIFADDR, SIOCSIFDSTADDR, SIOCSIFNETMASK, and activated by setting IFF_UP
> > +with SIOCSIFFLAGS
>
> (That somewhat makes it sounds like the "new" netlink interface cannot
> be used (e.g. ip command);
Ah, right...
> although I guess sommeone implementing this would be more likely to
> use the ioctls than not so having the names can be a timesaver?)
It's indeed a timesaver to have the ioctl names, but perhaps we can
replace this part with a pointer to a if-configuration documentation?
> Also, this got me wondering if the 'if' fd can be closed immediately or
> if the interface will be removed when the fd is closed (probably not?)
Closing the fd would close the if, yes. AIUI one really has to keep the
pppox socket (for stats), the ppp chan (for non-data ppp packets), and
the ppp if (for the if).
Samuel
Powered by blists - more mailing lists