Re: question for ip packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 24, 2008 at 10:41:00AM +0800, ?????? wrote:
> 1. after pppd has negotiated the link, what it tell information to the
> kernel network ppp code, which make kernel transmit IP packets
> directly?

Briefly, in function tty_establish_ppp() in sys-linux.c, an ioctl(2)
syscall sets the TTY into PPP discipline (N_PPP).  Once the interface is
up, the kernel transmits network packets through the PPP link.

> 2. where to receive the IP packets from ppp kernel?  how to know the
> ip packet come from not other device but PPP?

I don't understand.  It is very clear the packets are from the PPP link
because they can be captured from the new network interface.

-- 
James Cameron                         http://quozl.netrek.org/
HP Open Source, Volunteer             http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux