dir600b_v2.03/kernels/rt305x/drivers/net/ppp_generic.c
/*
 * /dev/ppp device routines.
 * The /dev/ppp device is used by pppd to control the ppp unit.
 * It supports the read, write, ioctl and poll functions.
 * Open instances of /dev/ppp can be in one of three states:
 * unattached, attached to a ppp unit, or attached to a ppp channel.
 */
/dev/ppp device routines.
The /dev/ppp device is used by pppd to control the ppp unit.
It supports the read, write, ioctl and poll functions.
Open instances of /dev/ppp can be in one of three states:
unattached, attached to a ppp unit, or attached to a ppp channel.
/ dev / ppp device routines . The / dev / ppp device is used by pppd to control the ppp unit . It supports the read write ioctl and poll functions . Open instances of / dev / ppp can be in one of three states : unattached attached to a ppp unit or attached to a ppp channel .
static int ppp_open(struct inode *inode, struct file *file)
{
	if (!capable(CAP_NET_ADMIN))
		return -EPERM;
	return 0;
}
static int ppp_open ( struct inode * inode , struct file * file ) { if ( ! capable ( CAP_NET_ADMIN ) ) return - EPERM ; return 0 ; }
/dev/ppp device routines.
/ dev / ppp device routines .
/*
	 * This could (should?) be enforced by the permissions on /dev/ppp.
	 */