AW: [mpls-linux-general] when mpls_recv
Status: Beta
Brought to you by:
jleu
|
From: Georg K. <gk...@gi...> - 2003-02-20 08:32:30
|
Hi roro, > I am reading mpls-linux source code, but I encoutered problems. > is mpls_rcv invoked when a packet reach ingress LSR? If so, which > sentence invoke it ? The mpls_init function registers the Packet Type ETH_P_MPLS_UC to be received by the function mpls_rcv. So mpls_rcv is called almost immediately after the device driver calls netif_rx(). You won't find any mpls_rcv reference in the kernel, instead the registration works with the function dev_add_pack(); > And where is mpls_send invoked? mpls_send is called by mpls_output2, is called by mpls_output_shim is called by mpls_output which is stored along with the next hop info of the FIB. (see mpls_make_dst()) > Can you tell me the detailed flow when a packet reach and leave ? > It will be appreciated. > Thanks a lot Hope this helps for reading further ... Georg |