Re: where is the rx interrupt handler in Ppp_generic.c?

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

 



On Wed, Apr 30, 2008 at 10:33:13AM +0800, ?????? wrote:
> I'm confused when I read the kernel's ppp implement. in
> Ppp_generic.c,the function ppp_create_interface  register the
> net_device , but I can't find out whereis the rx interrupt handler. So
> how the net device interface such as ppp0 deal with received packets? 

I'm not sure exactly what you mean.  I think you want to know how the
received packets find their way from the tty to the network interface
ppp0.

ppp_async.c ppp_asynctty_receive() occurs when bytes are received from
the tty.  This wakes the tasklet ppp_async_process().  The tasklet calls
ppp_input() for each packet.

Eventually, ppp_input() calls ppp_receive_nonmp_frame() which removes
the encapsulation and calls netif_rx() ... after that the packet will
appear in ppp0 as received.

"rx interrupt handler" ... might be better thought of as the tty receive
handler, which cascades through ppp_async.c into ppp_generic.c

-- 
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