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
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
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
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
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