From: James Cameron <james.cameron@hp.com>
To: linux-ppp@vger.kernel.org
Subject: Re: question for ip packet
Date: Thu, 24 Apr 2008 03:50:28 +0000 [thread overview]
Message-ID: <20080424035028.GE4395@hp.com> (raw)
In-Reply-To: <200804241041005531107@fiberhome.com.cn>
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/
prev parent reply other threads:[~2008-04-24 3:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-24 2:41 question for ip packet 梁红军
2008-04-24 3:50 ` James Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080424035028.GE4395@hp.com \
--to=james.cameron@hp.com \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.