-----Urspr�ngliche Nachricht-----
Von: Paul Mackerras <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Datum: Donnerstag, 15. Juli 1999 03:50
Betreff: Re: ioctl problem


Hallo everybody,


>> I've added a new ioctl to ppp doing the following

>> ........

Thanx for the answer Paul.
I already got it fixed.
The problem was just that I was calling this ioctl on ppp_fd a little bit
too early in the code.
Simply moving it to another position fixed the problem.

>> where mode is a global variable previously defined.
>[snip]

Well, in my code in user space, mode is defined as a global variable in
options.c together with many other global variables, it is one new option
that ppp gets from the command line.

In ppp.c it is at the moment a globlal variable because many functions need
to see it its value.
Anyway I'm thinking of moving it inside the ppp structure as a new field of
it.

Sorry I'm no great programmer and it's difficult for me to produce good
style code.
Do you think it is better like this?

Ciao.
FEDERICO


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to