mpls-linux-general Mailing List for MPLS for Linux (Page 152)
Status: Beta
Brought to you by:
jleu
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(26) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(22) |
Feb
(19) |
Mar
(19) |
Apr
(45) |
May
(52) |
Jun
(101) |
Jul
(79) |
Aug
(24) |
Sep
(43) |
Oct
(54) |
Nov
(71) |
Dec
(53) |
2002 |
Jan
(111) |
Feb
(123) |
Mar
(67) |
Apr
(61) |
May
(75) |
Jun
(26) |
Jul
(36) |
Aug
(41) |
Sep
(79) |
Oct
(85) |
Nov
(58) |
Dec
(39) |
2003 |
Jan
(26) |
Feb
(61) |
Mar
(80) |
Apr
(56) |
May
(39) |
Jun
(44) |
Jul
(28) |
Aug
(25) |
Sep
(4) |
Oct
(20) |
Nov
(38) |
Dec
(9) |
2004 |
Jan
(14) |
Feb
(14) |
Mar
(68) |
Apr
(17) |
May
(45) |
Jun
(42) |
Jul
(41) |
Aug
(23) |
Sep
(46) |
Oct
(89) |
Nov
(55) |
Dec
(33) |
2005 |
Jan
(74) |
Feb
(39) |
Mar
(105) |
Apr
(96) |
May
(43) |
Jun
(48) |
Jul
(21) |
Aug
(22) |
Sep
(33) |
Oct
(28) |
Nov
(29) |
Dec
(81) |
2006 |
Jan
(37) |
Feb
(32) |
Mar
(147) |
Apr
(37) |
May
(33) |
Jun
(28) |
Jul
(15) |
Aug
(20) |
Sep
(15) |
Oct
(23) |
Nov
(30) |
Dec
(40) |
2007 |
Jan
(20) |
Feb
(24) |
Mar
(65) |
Apr
(69) |
May
(41) |
Jun
(53) |
Jul
(39) |
Aug
(76) |
Sep
(53) |
Oct
(43) |
Nov
(26) |
Dec
(24) |
2008 |
Jan
(19) |
Feb
(67) |
Mar
(91) |
Apr
(75) |
May
(47) |
Jun
(63) |
Jul
(68) |
Aug
(39) |
Sep
(44) |
Oct
(33) |
Nov
(62) |
Dec
(84) |
2009 |
Jan
(14) |
Feb
(39) |
Mar
(55) |
Apr
(63) |
May
(16) |
Jun
(9) |
Jul
(4) |
Aug
(6) |
Sep
(1) |
Oct
(2) |
Nov
(10) |
Dec
(5) |
2010 |
Jan
(3) |
Feb
(1) |
Mar
(5) |
Apr
(13) |
May
(4) |
Jun
(5) |
Jul
(2) |
Aug
(8) |
Sep
(6) |
Oct
(1) |
Nov
(2) |
Dec
(2) |
2011 |
Jan
(1) |
Feb
(21) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(6) |
Sep
|
Oct
|
Nov
(2) |
Dec
(6) |
2012 |
Jan
(5) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(5) |
Aug
(3) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
From: Dragos, R. <dr...@ee...> - 2002-01-22 17:42:10
|
Hi all, Is ldp-portable depending on mpls-linux implementation? If yes, why is it called "portable" ? The points is: can I use ldp-portable with my own MPLS 4 Linux implementation? Thanks, Radu |
From: ÕÅΰһ <zh...@16...> - 2002-01-22 08:12:48
|
Hi,All, I am reading the Jim's codes now.But I can not find where are the defination of "mpls_out_info_tree" and "mpls_in_info_tree".Anyone can tell me? Thanks in advance! Yours Sincerely Zhang,Weiyi ============================================================= http://dating.163.com ´ºÌ컨»á¿ª£¬Äк¢Å®º¢ÒªÁµ°®¡« http://im.163.com ÍøÒ×¶ÌÐÅͨ£ºÃâ·Ñ·¢ËÍÊÖ»ú¶ÌÐŵÄ×ÀÃæÈí¼þ http://vip.163.com ÍøÒ×VIPÓÊÏä 30ÃëÁ¢µÃ |
From: anish v. <ani...@re...> - 2002-01-22 07:08:57
|
hi jim,=0D=0A it was mentioned in the documentation of mpls-linux-1.0 abt = the structures mpls_nhlfe , mpls_ftn,=0D=0Ailm_ent. but it was not there in= the code.=0D=0Awhether they r implemented in some other way.=0D=0Ahelp me.= =0D=0Athanx in advance=0D=0Aanish=0D=0A =0D=0A =0A |
From: anish v. <ani...@re...> - 2002-01-22 07:06:39
|
hi jim,=0D=0A it was mentioned in the documentation of mpls-linux-1.0 abt = the structures mpls_nhlfe , mpls_ftn,=0D=0Ailm_ent. but it was not there in= the code.=0D=0Awhether they r implemented in some other way.=0D=0Ahelp me.= =0D=0Athanx in advance=0D=0Aanish=0D=0A =0D=0A =0A |
From: James R. L. <jl...@mi...> - 2002-01-21 18:34:28
|
On Sun, Jan 20, 2002 at 07:56:01PM -0800, lingdong li wrote: > can you clarify the order of these commonds? > if I use FreeBsd,I need not run these commond.Is it? > Thanks for your patience and help.:) cd /usr/include/ mv linux linux.old mv asm asm.old (I'm assuming your kernel source is located in /usr/src/linux) ln -s /usr/src/linux/include/linux ln -s /usr/src/linux/include/asm cd /usr/src/linux/ make menuconfig make dep make vmlinux make modules make modules_install make install reboot > > Best Regard > > Li > --- "James R. Leu" <jl...@mi...> wrote: > > My guess is that you're using a redhat distribution > > and that you've never > > compiled a kernel before. > > > > Use 'make dep vmlinux install' > > If you configured any modules do 'make modules > > modules_install' > > > > On Sun, Jan 20, 2002 at 05:13:39AM -0800, lingdong > > li wrote: > > > Dear Jim, > > > > > > I just find there are no mpls.h and dst.h in > > the > > > /usr/include/net.But both files are included in > > > mpls_*.c in usr/src/net/mpls/,is it a problem? > > > > Becuase your using redhat, your > > /usr/include/linux,asm do not point > > to your kernel source. > > > > cd /usr/include > > mv linux linux.old > > mv asm asm.old > > > > (I'm assuming your kernel source is located in > > /usr/src/linux) > > > > ln -s /usr/src/linux/include/linux > > ln -s /usr/src/linux/include/asm > > > > > I install and compile the mpls-linux-1.0 under > > the > > > instruction of QUICK.START. > > > ************************************* > > > in the /usr/src, > > > tar -zxvf linux-2.5.0.tar.gz > > > then > > > tar -zxvf mpls-1.0*.gz > > > cd linux > > > patch ............. > > > make menuconfig > > > turn on "Prompt for development and/or > > incomplete > > > code/drivers","Kernel/User netlink > > socket","Routing > > > messages","Multi-Protocol Label Switching",and > > some > > > other options. > > > make dep > > > make clean > > > make bzlilo > > > reboot > > > *********************************** > > > But I can not find the mpls_* in /proc/net.Is > > there > > > wrong in some steps? > > > Hoping your help:) > > > > > > Best Wishes > > > > > > Li > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Send FREE video emails in Yahoo! Mail! > > > http://promo.yahoo.com/videomail/ > > > > -- > > James R. Leu > > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ -- James R. Leu |
From: James R. L. <jl...@mi...> - 2002-01-21 18:11:22
|
On Mon, Jan 21, 2002 at 04:34:44AM -0800, Cheng Zhengchao wrote: > Hi,All, > > When I read the codes of mpls*.c in the > /usr/src/linux/net/mpls,I find I can not catch what > the RADIX_* do.Can anyone help me to understand The corect name is a radix trie. Which is basically a tree (binary or otherwise) that can support variable length keys. I wrote the RADIX* macros when I was studying differnt way to optimize the storage of the internet routing table. I use it now because I'm lazy :-) It provides a pretty speedy look up, but I never fully take advantage of the trie, the keys I store in it are always 32 bits in length. Someday I'll replace RADIX* with some sort of multilevel hash. You don't need to understand RADIX* to understand the MPLS implementation. Just think of them as easy ways to save and retireve info by a 32 bit key. > it?What do them to do? > At the same time,mpls_label2key() is used to get the > key,but I wonder how can it get the mark?and what is The structure mpls_key is a union. If you understand how a union works it becomes quit evident how I get 'mark' from it. > the role of key in the RADIX_*? > Thanks for your help in advance. > > Yours Sincerely > Cheng > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |
From: Cheng Z. <che...@ya...> - 2002-01-21 12:34:47
|
Hi,All, When I read the codes of mpls*.c in the /usr/src/linux/net/mpls,I find I can not catch what the RADIX_* do.Can anyone help me to understand it?What do them to do? At the same time,mpls_label2key() is used to get the key,but I wonder how can it get the mark?and what is the role of key in the RADIX_*? Thanks for your help in advance. Yours Sincerely Cheng __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ |
From: James R. L. <jl...@mi...> - 2002-01-20 03:31:54
|
On Fri, Jan 18, 2002 at 07:53:26PM -0800, lingdong li wrote: > Hi,All, > I have compiled the mpls-linux-1.0 successfully,and > I run the commond following the content of > README.example on 2 pcs.But there is no mpls_* in my > /proc/net. > I want to know why,Please shed me with your > light.Thank you! Did you turn on the "Multi-Protocol Label Switching (MPLS)" option under networking options? Did you see "MPLS version X.XXX YY/YY/2001 jl...@mi..." or something like that in you kernel boot up? You might want to read QUICK.START to learn what kernel configuration you should do. Jim > Best Regard > > Zhang > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |
From: lingdong li <lin...@ya...> - 2002-01-19 04:51:23
|
Hi,All, I have compiled the mpls-linux-1.0 successfully,and I run the commond following the content of README.example on 2 pcs.But there is no mpls_* in my /proc/net. I want to know why,Please shed me with your light.Thank you! Best Regard Zhang __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ |
From: James R. L. <jl...@mi...> - 2002-01-18 21:51:21
|
Which version of gcc are you using? Jim On Fri, Jan 18, 2002 at 10:28:59PM +0800, =D5=C5=CE=B0=D2=BB wrote: > Hi All, > We'r facing some problems in installing, ldp_linux > We 've successfuly installed "mplsadm" utiliy in /usr/src/mpls-linux-1.= 0/util/ >=20 > 1. > The problem is that in dir /usr/local/ldp-portable-0.0.60/ when I giv= e > # make > for some time make runs successfully... but after some time... error is= generated : > rt ; make ldp_linux.o > make[1]: Entering directory `/usr/src/ldp-portable-0.060/port' > make[1]: `ldp_linux.o' is up to date. > make[1]: Leaving directory `/usr/src/ldp-portable-0.060/port' > cd port ; make libldpport.a > make[1]: Entering directory `/usr/src/ldp-portable-0.060/port' > make[1]: `libldpport.a' is up to date. > make[1]: Leaving directory `/usr/src/ldp-portable-0.060/port' > cd lib ; make libldp.a > make[1]: Entering directory `/usr/src/ldp-portable-0.060/lib' > make[1]: `libldp.a' is up to date. > make[1]: Leaving directory `/usr/src/ldp-portable-0.060/lib' > gcc -o ldp_linux port/ldp_linux.o lib/libldp.a port/libldpport.a lib/li= bldp.a > collect2: ld terminated with signal 11 [Segmentation fault] > make: *** [ldp_linux] Error 1 >=20 >=20 >=20 >=20 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > http://dating.163.com =B4=BA=CC=EC=BB=A8=BB=E1=BF=AA=A3=AC=C4=D0=BA= =A2=C5=AE=BA=A2=D2=AA=C1=B5=B0=AE=A1=AB > http://im.163.com =CD=F8=D2=D7=B6=CC=D0=C5=CD=A8=A3=BA=C3=E2=B7= =D1=B7=A2=CB=CD=CA=D6=BB=FA=B6=CC=D0=C5=B5=C4=D7=C0=C3=E6=C8=ED=BC=FE > http://vip.163.com =CD=F8=D2=D7VIP=D3=CA=CF=E4 30=C3=EB=C1=A2=B5= =C3 >=20 > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu |
From: ÕÅΰһ <zh...@16...> - 2002-01-18 14:29:15
|
Hi All, We'r facing some problems in installing, ldp_linux We 've successfuly installed "mplsadm" utiliy in /usr/src/mpls-linux-1.0/util/ 1. The problem is that in dir /usr/local/ldp-portable-0.0.60/ when I give # make for some time make runs successfully... but after some time... error is generated : rt ; make ldp_linux.o make[1]: Entering directory `/usr/src/ldp-portable-0.060/port' make[1]: `ldp_linux.o' is up to date. make[1]: Leaving directory `/usr/src/ldp-portable-0.060/port' cd port ; make libldpport.a make[1]: Entering directory `/usr/src/ldp-portable-0.060/port' make[1]: `libldpport.a' is up to date. make[1]: Leaving directory `/usr/src/ldp-portable-0.060/port' cd lib ; make libldp.a make[1]: Entering directory `/usr/src/ldp-portable-0.060/lib' make[1]: `libldp.a' is up to date. make[1]: Leaving directory `/usr/src/ldp-portable-0.060/lib' gcc -o ldp_linux port/ldp_linux.o lib/libldp.a port/libldpport.a lib/libldp.a collect2: ld terminated with signal 11 [Segmentation fault] make: *** [ldp_linux] Error 1 ============================================================= http://dating.163.com ´ºÌ컨»á¿ª£¬Äк¢Å®º¢ÒªÁµ°®¡« http://im.163.com ÍøÒ×¶ÌÐÅͨ£ºÃâ·Ñ·¢ËÍÊÖ»ú¶ÌÐŵÄ×ÀÃæÈí¼þ http://vip.163.com ÍøÒ×VIPÓÊÏä 30ÃëÁ¢µÃ |
From: nomit k. <nom...@in...> - 2002-01-18 07:16:13
|
Hello The mistake which we are doing here is we are mixing a application which runs in the user area and a feature which has to be incorporated into the kernel ( that is the support for proc file system).For the proc file system to be generated you have add the patch to the Linux kernel code and then compile that code. MPLSADM is something analogous with route command in Linux it does not implement MPLS forwarding it is the changes in which we make in the kernel code which does this. With regards Nomit -----Original Message----- From: zh...@16... [mailto:zh...@16...] Sent: Thursday, January 17, 2002 5:20 PM To: mpl...@li... Cc: mpl...@mp... Subject: How to do it? Hi ALL, In the README in mpls-linux-1.0\patches,Jim wrote "if you also add support for the /proc filesystem the result will be four new files in the /proc/net directory".I have run "mplsadm" successfully.But I do not find those files in /proc/net.How can I add suppot for /proc filesystem? There are mpls_*.c in /usr/src/linux/net/mpls.I do not clear that how those codes called by mplsadm? (I know using those files we can generate the mpls.o,but in the Makefile in mpls-linux-1.0/utils,we do not use the mpls.o) How does the mplsadm implement the MPLS forwarding for the Linux Kernel? I wanna your help,thanks.:) =20 Yours Sincerely Zhang Weiyi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://dating.163.com = =B4=BA=CC=EC=BB=A8=BB=E1=BF=AA=A3=AC=C4=D0=BA=A2=C5=AE=BA=A2=D2=AA=C1=B5=B0= =AE=A1=AB http://im.163.com = =CD=F8=D2=D7=B6=CC=D0=C5=CD=A8=A3=BA=C3=E2=B7=D1=B7=A2=CB=CD=CA=D6=BB=FA=B6= =CC=D0=C5=B5=C4=D7=C0=C3=E6=C8=ED=BC=FE http://vip.163.com =CD=F8=D2=D7VIP=D3=CA=CF=E4 = 30=C3=EB=C1=A2=B5=C3 ------- The MPLS-OPS Mailing List Subscribe/Unsubscribe: http://www.mplsrc.com/mplsops.shtml Archive: http://www.mplsrc.com/mpls-ops_archive.shtml |
From: Abhijit G. <gab...@ee...> - 2002-01-18 04:53:47
|
James R. Leu wrote : > >Since the MPLS forwarding plane is in the kernel and 'mplsadm' runs as >a userland process, their are a few mechanisms availble for transfering >information between the two: >- /proc/sys/* >- system calls ('ioctl' 'fnctl' etc..) >- netlink > >Currently I use a mix of system calls and netlink (although I'm leaning more >to using less and less netlink). May I know why this is so? I believe netlink is becoming a pretty standard way of user-kernel communications. Easily extensible, and right now perhaps the only mechanism (I know) for seemlessly exchanging data between user-space and kernel-space. Are there any major factors against using netlink? > >If you look in the patched kernel source you can look at the two files that >are the entry points for netlink and ioctl calls: net/mpls/mpls_ioctl.c >net/mpls/mpls_netlink.c. Both of these files end up calling functions >in differnt files (mpls_tunnel.c mpls_in_info.c mpls_out_info.c etc). > >Jim -abhijit |
From: James R. L. <jl...@mi...> - 2002-01-18 03:15:15
|
On Thu, Jan 17, 2002 at 03:12:11PM -0800, Sanjeev Chakravarty wrote: > > Hi Jim, > > I would appreciate if you could explain the content of an entry in > /proc/net/mpls_in > > Eg. on executing "mplsadm -A -I gen:27:0" > > The following entry was found in /proc/net/mpls_in > 40006C00 0/0/0 gen 27 0 POP PEEK > > What I could infer is: PEEK into the label stack for the top most label of > the incoming packet and if it is a generic label "27" in labelspace "0" then > POP that label. I have no idea about the other parameters "40006C00" and > "0/0/0". 40006C00 is the key that is used to store it in the internal tree. 0/0/0 are teh counters. Packet/byte/drop. > Also in one of your previous mail you mentioned that you are less inclined > towards using netlink. Is it becoz netlink is Linux specific and porting to > other systems could have problems or there are other issues? Netlink works well, but it seems like over kill. If I ever add notification (like when labels come and go) I will look to netlin again. Jim > > thanks, > > Sanjeev > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |
From: Sanjeev C. <Sa...@co...> - 2002-01-17 23:10:40
|
Hi Jim, I would appreciate if you could explain the content of an entry in /proc/net/mpls_in Eg. on executing "mplsadm -A -I gen:27:0" The following entry was found in /proc/net/mpls_in 40006C00 0/0/0 gen 27 0 POP PEEK What I could infer is: PEEK into the label stack for the top most label of the incoming packet and if it is a generic label "27" in labelspace "0" then POP that label. I have no idea about the other parameters "40006C00" and "0/0/0". Also in one of your previous mail you mentioned that you are less inclined towards using netlink. Is it becoz netlink is Linux specific and porting to other systems could have problems or there are other issues? thanks, Sanjeev |
From: Sanjeev C. <Sa...@co...> - 2002-01-17 21:54:08
|
Hi Dani, - First of all, is there more documentation about mpls-linux than the documentation that comes with the package? > I am not aware of any other documentation for this project other than what comes with the package. The mailing-list archive would be a useful resource to get a better understanding. Also, we can hope someday there will be an MLDP(Mpls for Linux Documentation Project) similar in lines with Linux Documentation Project. You may refer to http://65.184.3.77/mpls/mpls.html <http://65.184.3.77/mpls/mpls.html> for netlink introduction. - mplsadm is the utility to make LSPs between hosts, and it has an option that prints debug messages, but I'm trying to measure the speed, delays, etc. so, is there any option in mplsadm that can I use to make it? or Do I have to make a program or modify mplsadm.c to measure it? Does exists other methods to measure it? > There is no option in mplsadm to measure the throughput/delay or atleast I'm not aware of. You may transfer (ftp) a file and get the transfer rate with and without mpls being enabled. - is there any special option in mplsadm to send data packages in order to see how it works? Do I have to use ping or is there any special command in mplsadm to do it? > mplsadm doesn't generate data packets for testing. You will have to generate ip packets (eg., using ping, etc) - How can I see the routing tables with the label bindings? Is there any special file where this info is saved? > James described this in his last few mails in the mailing-list. Please look at them. Sorry for this kind of questions but I have just began to use it and I don't know how it works. Thanks in advance! Dani Hope this helps, Sanjeev. |
From: Daniel G. C. <da...@on...> - 2002-01-17 18:52:37
|
Hi, I have installed mpls-linux 0.996 over the kernel linux 2.4.13 and = now I'm doing the basic example that is in the docs directory. It is a = simple connection between two hosts, I'm doing this to learn how = MPLS-Linux and its utility mplsadm work. I'm not very good with Linux, = so I will be very pleased if someone can help me. Here are my questions: (Sorry for my english) - First of all, is there more documentation about mpls-linux than the = documentation that comes with the package? - mplsadm is the utility to make LSPs between hosts, and it has an = option that prints debug messages, but I'm trying to measure the speed, = delays, etc. so, is there any option in mplsadm that can I use to make = it? or Do I have to make a program or modify mplsadm.c to measure it? = Does exists other methods to measure it? - is there any special option in mplsadm to send data packages in order = to see how it works? Do I have to use ping or is there any special = command in mplsadm to do it? - How can I see the routing tables with the label bindings? Is there any = special file where this info is saved? Sorry for this kind of questions but I have just began to use it and I = don't know how it works. Thanks in advance! Dani |
From: =?utf-8?Q?<avi...@li...> - 2002-01-17 18:51:23
|
SGkgSmFtZXMsDQoNCnNpbmNlIEkgaGFkIHRyb3VibGVzIHdpdGggZHNmd2QgaW5zdHJ1Y3Rp b24gaW4gbXBscy1saW51eC0xLjEwOCB0b28sDQpJIGxvb2tlZCB0aHJvdWdoIHRoZSBjb2Rl IGFuZCBJIGZvdW5kIHNvbWUgbGl0dGxlIGJ1Z3MuIElmIHlvdSBkaWRuJ3QNCnNvbHZlIHRo ZSBwcm9ibGVtIHlldCBhbmQgeW91J3JlIGludGVyZXN0ZWQsDQppbiB0aGUgZm9sbG93aW5n IEkgZXhwbGFpbiB0aGUgY2hhbmdlcyBJIG1hZGUgd2hpY2ggbGV0IGRzZndkIHdvcmsuDQoN Cm1wbHNhZG0uYw0KLS0tLS0tLS0tDQpJbiB0aGUgZnVuY3Rpb24gZmlsbF9pbnN0cnVjdGlv bnMsIGluIHRoZSBjYXNlIE1QTFNfT1BfRFNfRldELA0KdGhlIG1hc2sgdmFyaWFibGUgbXVz dCBiZSBvZiBraW5kIHVuc2lnbmVkIGNoYXIgKGxpa2UgZGZfbWFzayBmaWVsZCkgYW5kDQpt dXN0IGJlIGFzc2lnbmVkIDoNCg0KLSBtaXItPm1pcl9pbnN0cnVjdGlvbltsZW5ndGhdLm1p cl9kYXRhLmRzX2Z3ZC5kZl9tYXNrID0NCnN0cnRvbChhcmdbaSsrXSxOVUxMLDApOw0KKyBt YXNrID0gc3RydG9sKGFyZ1tpKytdLE5VTEwsMCk7DQorIG1pci0+bWlyX2luc3RydWN0aW9u W2xlbmd0aF0ubWlyX2RhdGEuZHNfZndkLmRmX21hc2sgPSBtYXNrOw0KDQppbmNsdWRlL2xp bnV4L21wbHMuaA0KLS0tLS0tLS0tLS0tLS0tLS0tLS0NCkkgc3VwcG9zZSB5b3UgZGlkbid0 IG1lYW4gOg0KDQojZGVmaW5lIE1QTFNfRFNNQVJLX05VTSA4DQoNCmJ1dCA6DQoNCiNkZWZp bmUgTVBMU19EU01BUktfTlVNIDY0DQoNCm5ldC9tcGxzL21wbHNfb3V0cHV0LmMNCi0tLS0t LS0tLS0tLS0tLS0tLS0tLS0NCkluIHRoZSBmdW5jdGlvbiBtcGxzX291dHB1dDIsIGluIHRo ZSBjYXNlIE1QTFNfT1BfRFNfRldELA0KSSByZW1vdmVkIHRoZSBkZWNsYXJhdGlvbiBhbmQg YXNzaWdubWVudCBvZiBtb2kgdG8gTlVMTA0KKHN0cnVjdCBtcGxzX291dF9pbmZvICptb2kg PSBOVUxMOykNCk1vcmVvdmVyLCBzaW5jZSBEU0NQIGlzIGVuY29kZWQgaW4gdGhlIG1vc3Qg c2lnbmlmaWNhdGl2ZSA2IGJpdHMNCm9mIERTIGZpZWxkIGFuZCBpcHY0X2dldF9kc2ZpZWxk IHJldHVybnMgdGhlIGVudGlyZSBEUyBmaWVsZCwNCkkgdGhpbmsgdGhhdCBpdCBpcyB1c2Vm dWwgdG8gcmlnaHQtc2hpZnQgYnkgMiBkcyAmIG1hc2ssIHRoYXQgaXMgOg0KbW9pID0gZGZp LT5kZmlfbW9pWyhkcyAmIG1hc2spID4+IDJdDQpPdGhlcndpc2UgbXVsdGlwbGUgRFNDUHMg d2lsbCBtYXAgdGhlIHNhbWUgbW9pLg0KDQpMZXQgbWUga25vdyB3aGF0IHlvdSB0aGluayBh Ym91dCwgcXVlc3Rpb25zLi4uDQoNCkNoZWVycywNClN0ZWZhbm8= |
From: James R. L. <jl...@mi...> - 2002-01-17 15:27:11
|
Hello, On Thu, Jan 17, 2002 at 07:49:55PM +0800, =D5=C5=CE=B0=D2=BB wrote: > Hi ALL, > In the README in mpls-linux-1.0\patches,Jim wrote "if you also add sup= port for the /proc filesystem the result will be four new files in the /p= roc/net directory".I have run "mplsadm" successfully.But I do not find th= ose files in /proc/net.How can I add suppot for /proc filesystem? > There are mpls_*.c in /usr/src/linux/net/mpls.I do not clear that how = those codes called by mplsadm? (I know using those files we can generate = the mpls.o,but in the Makefile in mpls-linux-1.0/utils,we do not use the = mpls.o) How does the mplsadm implement the MPLS forwarding for the Linux = Kernel? > I wanna your help,thanks.:) Since the MPLS forwarding plane is in the kernel and 'mplsadm' runs as a userland process, their are a few mechanisms availble for transfering information between the two: - /proc/sys/* - system calls ('ioctl' 'fnctl' etc..) - netlink Currently I use a mix of system calls and netlink (although I'm leaning m= ore to using less and less netlink). If you look in the patched kernel source you can look at the two files th= at are the entry points for netlink and ioctl calls: net/mpls/mpls_ioctl.c net/mpls/mpls_netlink.c. Both of these files end up calling functions in differnt files (mpls_tunnel.c mpls_in_info.c mpls_out_info.c etc). What all this about /proc? MPLS for linux uses the proc filesystem as a way of exposing to the user what is currently configured, they are read only "files". The reason I quoted "files" is that they are not file= s in the traditional sense. Everything in the /proc filesystem is actually a set of virtual files that result in kernel functions being called whenv= er they are accessed. If you look in net/mpls/mpls_proc.c you will see the functions that produce the output that you see when looking at /proc/net/= mpls_* I hope this helps. Jim > =20 > Yours Sincerely >=20 > Zhang Weiyi >=20 >=20 >=20 >=20 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > http://dating.163.com =B4=BA=CC=EC=BB=A8=BB=E1=BF=AA=A3=AC=C4=D0=BA= =A2=C5=AE=BA=A2=D2=AA=C1=B5=B0=AE=A1=AB > http://im.163.com =CD=F8=D2=D7=B6=CC=D0=C5=CD=A8=A3=BA=C3=E2=B7= =D1=B7=A2=CB=CD=CA=D6=BB=FA=B6=CC=D0=C5=B5=C4=D7=C0=C3=E6=C8=ED=BC=FE > http://vip.163.com =CD=F8=D2=D7VIP=D3=CA=CF=E4 30=C3=EB=C1=A2=B5= =C3 >=20 > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu |
From: ÕÅΰһ <zh...@16...> - 2002-01-17 11:50:03
|
Hi ALL, In the README in mpls-linux-1.0\patches,Jim wrote "if you also add support for the /proc filesystem the result will be four new files in the /proc/net directory".I have run "mplsadm" successfully.But I do not find those files in /proc/net.How can I add suppot for /proc filesystem? There are mpls_*.c in /usr/src/linux/net/mpls.I do not clear that how those codes called by mplsadm? (I know using those files we can generate the mpls.o,but in the Makefile in mpls-linux-1.0/utils,we do not use the mpls.o) How does the mplsadm implement the MPLS forwarding for the Linux Kernel? I wanna your help,thanks.:) Yours Sincerely Zhang Weiyi ============================================================= http://dating.163.com ´ºÌ컨»á¿ª£¬Äк¢Å®º¢ÒªÁµ°®¡« http://im.163.com ÍøÒ×¶ÌÐÅͨ£ºÃâ·Ñ·¢ËÍÊÖ»ú¶ÌÐŵÄ×ÀÃæÈí¼þ http://vip.163.com ÍøÒ×VIPÓÊÏä 30ÃëÁ¢µÃ |
From: ÕÅΰһ <zh...@16...> - 2002-01-17 02:29:35
|
Hi,All, I just downloaded the ldp-portable-0.060 and mpls-linux-1.0,but I still have several questions about them.Maybe my questions are simple,but I appreciate your help in advance. 1. Has the mpls-linux-1.0 relationship with ldp-portable-0.060?just in the mpls-linux-1.0,how does it implement the ldp functions? 2. I heard the redirection of IP packet from IP layer to mpls layer is implemented by the mpls_tunnel.c in the /proc/net,but I want to know how does the "mplsadm" find it? 3. I just saw Jim said that /proc/net/mpls_* has information mapping the labels to interfaces.How does "mplsadm" call them? I know my questions are simple,and my English is poor,but I really need your help.Thanks! Yours Sincerely Zhang,Weiyi ============================================================= http://dating.163.com ´ºÌ컨»á¿ª£¬Äк¢Å®º¢ÒªÁµ°®¡« http://im.163.com ÍøÒ×¶ÌÐÅͨ£ºÃâ·Ñ·¢ËÍÊÖ»ú¶ÌÐŵÄ×ÀÃæÈí¼þ http://vip.163.com ÍøÒ×VIPÓÊÏä 30ÃëÁ¢µÃ |
From: James R. L. <jl...@mi...> - 2002-01-16 20:15:38
|
On Wed, Jan 16, 2002 at 11:45:48AM -0800, Sanjeev Chakravarty wrote: > Hi James, > > I think most of the info I was looking for could be obtained from > /proc/net/mpls_*. > > I don't have a system running mpls right now to find out but was wondering > if the information contained in /proc/net/mpls_* has information mapping the > labels to interfaces. Outgoing labels list what interface they are trasmitetd on Incoming labels list what labelspace they are in. mpls_labelspace lists what interfaces are in which labelspaces. > Also, are attributes like "age" and "exp" bits contained in > /proc/net/mpls_*? I do not output the age info. Would this be useful? EXP bit are displayed if the instructions for the label contain EXP mappings. Jim > thanks, > > Sanjeev > > -----Original Message----- > From: James R. Leu [mailto:jl...@mi...] > Sent: Wednesday, January 16, 2002 1:05 PM > To: Sanjeev Chakravarty > Cc: mpl...@li... > Subject: Re: [mpls-linux-general] Listing of mpls attributes for an > interface > > > On Wed, Jan 16, 2002 at 11:00:08AM -0800, Sanjeev Chakravarty wrote: > > Hi, > > > > It appears to me that "mplsadm" doesn't provide any options of listing > mpls > > attributes for an interface. Is there an api in mpls package that would > help > > me obtain this info? > > I'm not sure what attributes you are refering too. > > Does the info under /proc/net/mpls_* provide what you are looking for? > > > thanks, > > > > Sanjeev > > > > _______________________________________________ > > mpls-linux-general mailing list > > mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > -- > James R. Leu -- James R. Leu |
From: Sanjeev C. <Sa...@co...> - 2002-01-16 19:45:18
|
Hi James, I think most of the info I was looking for could be obtained from /proc/net/mpls_*. I don't have a system running mpls right now to find out but was wondering if the information contained in /proc/net/mpls_* has information mapping the labels to interfaces. Also, are attributes like "age" and "exp" bits contained in /proc/net/mpls_*? thanks, Sanjeev -----Original Message----- From: James R. Leu [mailto:jl...@mi...] Sent: Wednesday, January 16, 2002 1:05 PM To: Sanjeev Chakravarty Cc: mpl...@li... Subject: Re: [mpls-linux-general] Listing of mpls attributes for an interface On Wed, Jan 16, 2002 at 11:00:08AM -0800, Sanjeev Chakravarty wrote: > Hi, > > It appears to me that "mplsadm" doesn't provide any options of listing mpls > attributes for an interface. Is there an api in mpls package that would help > me obtain this info? I'm not sure what attributes you are refering too. Does the info under /proc/net/mpls_* provide what you are looking for? > thanks, > > Sanjeev > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |
From: James R. L. <jl...@mi...> - 2002-01-16 19:10:01
|
On Wed, Jan 16, 2002 at 11:00:08AM -0800, Sanjeev Chakravarty wrote: > Hi, > > It appears to me that "mplsadm" doesn't provide any options of listing mpls > attributes for an interface. Is there an api in mpls package that would help > me obtain this info? I'm not sure what attributes you are refering too. Does the info under /proc/net/mpls_* provide what you are looking for? > thanks, > > Sanjeev > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |
From: Sanjeev C. <Sa...@co...> - 2002-01-16 18:59:23
|
Hi, It appears to me that "mplsadm" doesn't provide any options of listing mpls attributes for an interface. Is there an api in mpls package that would help me obtain this info? thanks, Sanjeev |