Re: [mpls-linux-devel] About mpls-packet to ip-packet process
Status: Beta
Brought to you by:
jleu
From: 刘磊 <orp...@ms...> - 2008-05-01 10:44:52
|
I was follow the example of "IPv4 over MPLS: two LER example for mpls-linux-1.95x". Do you means I have to change the "mpls nhlfe add key 0 instructions nexthop eth3 ipv4 192.168.1.4 (returns key 0x2)" to "mpls nhlfe add key 0 instructions deliver nexthop eth3 ipv4 192.168.1.4 (returns key 0x2)" ? ---------------------------------------- > Date: Wed, 30 Apr 2008 21:16:22 -0500 > From: jl...@mi... > To: @mindspring.com > CC: mpl...@li... > Subject: Re: [mpls-linux-devel] About mpls-packet to ip-packet process > > Hmm. I think you are looking at the PHP code. Take a look at > the 'deliver' instruction. It will show you that packets destined from > IPv4 may be configured to go through 'ip_rcv' which will result in > the packet travesing all of the IPv4 netfilter hooks. > > On Wed, Apr 30, 2008 at 03:56:51AM +0000, =?GB2312?B?wfXA2iA8b3JwaGVuX2xlaWxpdUBtc24uY29tPg==?= wrote: >> >> Hi all: >> I found that the packet which from ip stack to mpls stack in the ip_finish_output2 had passed POSTROUTING hook in netfilter. >> BUT the packet from mpls stack to ip stack just use neighbour->output, which NOT hook in PREROUTING in netfilter. >> >> In this way, if I do SNAT for ip packet and send into mpls stack, will NOT do Un-SNAT for the reply packet. >> >> Is my understand right? How to solved it? >> _________________________________________________________________ >> 用手机MSN聊天写邮件看空间,无限沟通,分享精彩! >> http://mobile.msn.com.cn/ >> > >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> mpls-linux-devel mailing list >> mpl...@li... >> https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel > > > -- > James R. Leu > jl...@mi... _________________________________________________________________ MSN 中文网,最新时尚生活资讯,白领聚集门户。 http://cn.msn.com |