linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question for ip packet
@ 2008-04-24  2:41 梁红军
  2008-04-24  3:50 ` James Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: 梁红军 @ 2008-04-24  2:41 UTC (permalink / raw)
  To: linux-ppp

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 1078 bytes --]

linux-ppp£¬ÄúºÃ£¡
  the following is the description about ppp in the Readme of linux PPPD:          
   the kernel module assembles/disassembles PPP frames, handles error
detection, and forwards packets between the serial port and either the
kernel network code or the user-level program pppd.  IP packets go
directly to the kernel network code.  So once pppd has negotiated the
link, it in practice lies completely dormant until you want to take
the link down, when it negotiates a graceful disconnect.
 question:
         1.after  pppd has negotiated the link ,what it tell information to  the kernel network ppp code ,
        which  make kernel  transmit  IP packets directly?
         2.  where to receive the IP packets from ppp kernel ?  how to know the ip packet come from not other 
        device but PPP?
 
 

	

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
Àñ£¡
 				

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Áººì¾ü
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hjliang@fiberhome.com.cn
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2008-04-24
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þšiþ)í…æèw*\x1fjg¬±¨\x1e¶‰šŽŠÝ¢jÿ¾\a«þG«éÿ¢¸\f¢·¦j:+v‰¨ŠwèjØm¶Ÿÿþø\x1e¯ù\x1e®w¥þŠàþf£¢·hšâúÿ†Ù¥

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: question for ip packet
  2008-04-24  2:41 question for ip packet 梁红军
@ 2008-04-24  3:50 ` James Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: James Cameron @ 2008-04-24  3:50 UTC (permalink / raw)
  To: linux-ppp

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-24  3:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24  2:41 question for ip packet 梁红军
2008-04-24  3:50 ` James Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).