[mpls-linux-general] question about /proc/net/.. files
Status: Beta
Brought to you by:
jleu
From: yu-xiao j. <yx...@ho...> - 2001-05-04 15:52:14
|
Hi, James I can see the mpls label with Ethereal when I setup the label in each router. But the questions is why the size of the files (/proc/net/mpls_in, mpls_out, mpls_fec...) is 0. when I open these files, nothing is there. I have choosen the support the proc file system. Another questions : after I finished one experiment. I want to set up different label in the same router. So I need to delete the old label first, then setup the new label. My operation is: mplsadm -v -A -B -O gen:16:eth0:ipv4:10.1.0.1 -f 10.2.1.10/32 (setup the label) mplsadm -v -D -B -O gen:16:eth0:ipv4:10.1.0.1 -f 10.2.1.10/32 (delete the label) each time I need to change the "-A" to "-D". Is there any easy way to delete the label. Or How can I make sure the label is deleted completely. Is it ok just delete the file (mpls_in...). thanks in advance, jenny Jia >From: mpl...@li... >Reply-To: mpl...@li... >To: mpl...@li... >Subject: mpls-linux-general digest, Vol 1 #59 - 1 msg >Date: Thu, 03 May 2001 12:03:41 -0700 > >Send mpls-linux-general mailing list submissions to > mpl...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sourceforge.net/lists/listinfo/mpls-linux-general >or, via email, send a message with subject or body 'help' to > mpl...@li... > >You can reach the person managing the list at > mpl...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of mpls-linux-general digest..." > > >Today's Topics: > > 1. question about skbuff (Yan, Xue Qiang (Rex)) > >--__--__-- > >Message: 1 >From: "Yan, Xue Qiang (Rex)" <re...@lu...> >To: "'mpl...@li...'" > <mpl...@li...> >Date: Fri, 4 May 2001 01:14:02 +0800 >Subject: [mpls-linux-general] question about skbuff > >Hi James, >I'm going to add some features into your mpls-linux code for our research >use. >I am confused with mpls_opcode_pop() and mpls_opcode_push(). > >In mpls_opcode_pop() >Why do you need to shift the skb->h.raw and skb->nh.raw? My understanding >is >that all the L3/L4 headers remain in the same address, We do not need to >shift skb->h.raw and skb->nh.raw >====================from mpls_opcode.c======= >... >skb_pull(skb, sizeof(u32)); >skb->h.raw += sizeof(u32); >skb->nh.raw += sizeof(u32); >... >========================================== >in mpls_opcode_push() >... >/*if we have room between data and end of mac.raw*/ >skb->push(o,sizeof(u32)); >o->h.raw -= sizeof(u32); >o->nh.raw -= sizeof(u32); >... >/*if we have tailroom, just move the data down...*/ >/* My understanding is YOU NEED TO ADJUST ALL TH POINTERS HERE IN THIS CASE >*/ >.... > >I'm new to linux kernel, maybe its a very stupid question. >Thanks in advance. >Rex > > > >--__--__-- > >_______________________________________________ >mpls-linux-general mailing list >mpl...@li... >http://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > >End of mpls-linux-general Digest _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |