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