Re: PPP port: iface_Create

2000-12-02 Thread Marcus Brinkmann
On Sat, Dec 02, 2000 at 06:56:10PM -0600, Daniel E Baumann wrote: > > > ioctl(s, SIOCGIFFLAGS, &ifr); > > > > We have this, but ifr isn't initialized yet! You need to set the name. > > Also, the second argument is a struct ifreq **, while you need a struct > > ifreq *. But if you change ifr as a

Re: PPP port: iface_Create

2000-12-02 Thread Daniel E Baumann
On Saturday 02 December 2000 13:52, Marcus Brinkmann wrote: > On Sat, Dec 02, 2000 at 12:31:27PM -0600, Daniel E Baumann wrote: > > I have writen the function to create an iface startuct in PPP using > > several SIOC* ioctl glibc calls. This is the first time I've used this so > > I am posting it

Re: PPP port: iface_Create

2000-12-02 Thread Marcus Brinkmann
On Sat, Dec 02, 2000 at 12:31:27PM -0600, Daniel E Baumann wrote: > I have writen the function to create an iface startuct in PPP using several > SIOC* ioctl glibc calls. This is the first time I've used this so I am > posting it for inspection, comments and all that. > struct ifreq *ifr; Yo

Re: PPP port: iface_Create

2000-12-02 Thread Neal H Walfield
On Sat, Dec 02, 2000 at 12:31:27PM -0600, Daniel E Baumann wrote: > I have writen the function to create an iface startuct in PPP using several > SIOC* ioctl glibc calls. This is the first time I've used this so I am > posting it for inspection, comments and all that. Also, is it ok to reuse the

PPP port: iface_Create

2000-12-02 Thread Daniel E Baumann
I have writen the function to create an iface startuct in PPP using several SIOC* ioctl glibc calls. This is the first time I've used this so I am posting it for inspection, comments and all that. Also, is it ok to reuse the same ifreq struct in the ioctl calls or should I declare one for each