Hi,
I'm trying to obtain the pid of a pppd that creates a ppp interface given
the interface name.
I'm working in Linux 2.2.2
I use the SIOCGIFCONF ioctl call to obtain all the interfaces in the system.
With this call I obtain a 'struct ifconf ifc'. With this data, I search
for the string "ppp" in 'icf.ifc_req[i].ifr_name'. The variable 'i' grow until
this string is NULL.
I have read the file if_pppvar.h and ppp.c from the ppp package and noted that
the pid of the pppd that created the ppp interface is stored in:
struct ppp -> sc_xfer
So, I need to obtain all the data of the 'struct ppp' of a given ppp interface
and then read the 'sc_xfer' member to obtain the pid of the pppd.
- Is there a ioctl call for this ?
- Can I obtain the data of a 'struct ppp' from the 'struct ifreq' or
'struct ifconf' defined in 'if.h' ?
Thanks in advance
Oliver
--
Oliver Schulze L.
[EMAIL PROTECTED]
Asuncion-Paraguay
http://www.pla.net.py/home/oliver/gpppkill/
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]