Thread: [mpls-linux-devel] MPLS & linux kernel 2.6.16.2
Status: Beta
Brought to you by:
jleu
From: Marina M. <mac...@gm...> - 2006-07-11 20:31:02
|
Hi Mr. Leu, hi everybody, I'm a Computer Software Engineer student and I'm developing my dissertation on Load Balancing with MPLS routing. I'm trying to use the version 1.950 of the MPLS routing, but I'm facing some configuration problem after compiling the patch from the sources; I kindly ask you to help me in this phase. I'm using a Debian distribution with the following items: * Linux kernel v. 2.6.16.2 * iproute2-2.6.16-060323 * iptables-1.3.5 * ebtables-v2.0.8-rc2 * quagga-0.99.4 and, of course, mpls-linux-1.950. I applied the patches to the kernel in the indicated order; I found some rejections (.rej), but I "easily" solved them by hands by slightly modifying the source code (adding header files, removing ".owner"...) My configuration correctly shows the MPLS module as present; I compiled with no error and installed the new MPLS-powered kernel. Despite that, on invoking any MPLS operation (like mpls add nhlfe 0...). I get this message: RTNETLINK answers: invalid argument I'm sure that I'm missing something tremendously obvious! In the following, the systrace output for "mpls nhlfe add key 0" - hope it helps. Thank you in advance for any help. Best regards, Marina Mariano systrace begins.... execve("/sbin/mpls", ["mpls", "nhlfe", "add", "key", "0"], [/* 28 vars */]) = 0 uname({sys="Linux", node="debian", ...}) = 0 brk(0) = 0x8053000 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f1c000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0777, st_size=55830, ...}) = 0 old_mmap(NULL, 55830, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f0e000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\00005\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0777, st_size=134496, ...}) = 0 old_mmap(NULL, 136976, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7eec000 old_mmap(0xb7f0d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0xb7f0d000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/libresolv.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220)\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0777, st_size=64924, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eeb000 old_mmap(NULL, 73640, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7ed9000 old_mmap(0xb7ee8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0xb7ee8000 old_mmap(0xb7ee9000, 8104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ee9000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Z\1\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0777, st_size=1254468, ...}) = 0 old_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7da4000 old_mmap(0xb7ece000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x129000) = 0xb7ece000 old_mmap(0xb7ed7000, 7308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ed7000 close(3) = 0 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7eebb80, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0xb7f0e000, 55830) = 0 socket(PF_NETLINK, SOCK_RAW, 0) = 3 setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0 setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0 bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 getsockname(3, {sa_family=AF_NETLINK, pid=5298, groups=00000000}, [12]) = 0 time(NULL) = 1152646179 sendto(3, "\24\0\0\0\22\0\1\3$\374\263D\0\0\0\0\0\200\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\344\0\0\0\20\0\2\0$\374\263D\262\24\0\0\0\0\4\3\1\0\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 896 brk(0) = 0x8053000 brk(0x8074000) = 0x8074000 brk(0) = 0x8074000 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0$\374\263D\262\24\0\0\0\0\0\0\1\0\0\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 20 sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\204\10\0\0\20\0\1\4%\374\263D\0\0\0\0\36\0\0\0\0\0\0\0"..., 2180}], msg_controllen=0, msg_flags=0}, 0) = 2180 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0%\374\263D\262\24\0\0\352\377\377\377\204"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36 dup(2) = 4 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fstat64(4, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f1b000 _llseek(4, 0, 0xbf92b508, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(4, "RTNETLINK answers: Invalid argum"..., 36) = 36 close(4) = 0 munmap(0xb7f1b000, 4096) = 0 exit_group(2) = ? |
From: James R. L. <jl...@mi...> - 2006-07-11 20:53:35
|
Hello Marina, Did you compile MPLS as a module? Did you include IPv4 bindings for MPLS? Did you load the mpls4 module? On Tue, Jul 11, 2006 at 10:30:55PM +0200, Marina Mariano wrote: > Hi Mr. Leu, hi everybody, >=20 > I'm a Computer Software Engineer student and I'm developing my dissertati= on > on Load Balancing with MPLS routing. >=20 > I'm trying to use the version 1.950 of the MPLS routing, but I'm facing s= ome > configuration problem after compiling the patch from the sources; I kindly > ask you to help me in this phase. >=20 > I'm using a Debian distribution with the following items: > * Linux kernel v. 2.6.16.2 > * iproute2-2.6.16-060323 > * iptables-1.3.5 > * ebtables-v2.0.8-rc2 > * quagga-0.99.4 > and, of course, mpls-linux-1.950. >=20 > I applied the patches to the kernel in the indicated order; I found some > rejections (.rej), but I "easily" solved them by hands by slightly modify= ing > the source code (adding header files, removing ".owner"...) >=20 > My configuration correctly shows the MPLS module as present; I compiled w= ith > no error and installed the new MPLS-powered kernel. >=20 > Despite that, on invoking any MPLS operation (like mpls add nhlfe 0...). I > get this message: > RTNETLINK answers: invalid argument >=20 > I'm sure that I'm missing something tremendously obvious! >=20 > In the following, the systrace output for "mpls nhlfe add key 0" - hope it > helps. >=20 > Thank you in advance for any help. > Best regards, > Marina Mariano >=20 > systrace begins.... >=20 > execve("/sbin/mpls", ["mpls", "nhlfe", "add", "key", "0"], [/* 28 vars */= ]) > =3D 0 > uname({sys=3D"Linux", node=3D"debian", ...}) =3D 0 > brk(0) =3D 0x8053000 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,= 0) > =3D 0xb7f1c000 > access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such file or > directory) > open("/etc/ld.so.preload", O_RDONLY) =3D -1 ENOENT (No such file or > directory) > open("/etc/ld.so.cache", O_RDONLY) =3D 3 > fstat64(3, {st_mode=3DS_IFREG|0777, st_size=3D55830, ...}) =3D 0 > old_mmap(NULL, 55830, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7f0e000 > close(3) =3D 0 > access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such file or > directory) > open("/lib/tls/libm.so.6", O_RDONLY) =3D 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\00005\0\000"..., 5= 12) > =3D 512 > fstat64(3, {st_mode=3DS_IFREG|0777, st_size=3D134496, ...}) =3D 0 > old_mmap(NULL, 136976, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0xb7ee= c000 > old_mmap(0xb7f0d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, > 0x20000) =3D 0xb7f0d000 > close(3) =3D 0 > access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such file or > directory) > open("/lib/tls/libresolv.so.2", O_RDONLY) =3D 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220)\0"..., 512)= =3D > 512 > fstat64(3, {st_mode=3DS_IFREG|0777, st_size=3D64924, ...}) =3D 0 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,= 0) > =3D 0xb7eeb000 > old_mmap(NULL, 73640, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0xb7ed9= 000 > old_mmap(0xb7ee8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, > 0xf000) =3D 0xb7ee8000 > old_mmap(0xb7ee9000, 8104, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ee9000 > close(3) =3D 0 > access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such file or > directory) > open("/lib/tls/libc.so.6", O_RDONLY) =3D 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Z\1\000"..., 512= ) =3D > 512 > fstat64(3, {st_mode=3DS_IFREG|0777, st_size=3D1254468, ...}) =3D 0 > old_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0xb7d= a4000 > old_mmap(0xb7ece000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, = 3, > 0x129000) =3D 0xb7ece000 > old_mmap(0xb7ed7000, 7308, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ed7000 > close(3) =3D 0 > set_thread_area({entry_number:-1 -> 6, base_addr:0xb7eebb80, limit:104857= 5, > seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, > seg_not_present:0, useable:1}) =3D 0 > munmap(0xb7f0e000, 55830) =3D 0 > socket(PF_NETLINK, SOCK_RAW, 0) =3D 3 > setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) =3D 0 > setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) =3D 0 > bind(3, {sa_family=3DAF_NETLINK, pid=3D0, groups=3D00000000}, 12) =3D 0 > getsockname(3, {sa_family=3DAF_NETLINK, pid=3D5298, groups=3D00000000}, [= 12]) =3D 0 > time(NULL) =3D 1152646179 > sendto(3, "\24\0\0\0\22\0\1\3$\374\263D\0\0\0\0\0\200\0\0", 20, 0, > {sa_family=3DAF_NETLINK, pid=3D0, groups=3D00000000}, 12) =3D 20 > recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0, groups=3D000= 00000}, > msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0$\374\263D\262\24\0\0\0\0\4\3\1\0\0"..= ., > 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 896 > brk(0) =3D 0x8053000 > brk(0x8074000) =3D 0x8074000 > brk(0) =3D 0x8074000 > recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0, groups=3D000= 00000}, > msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0$\374\263D\262\24\0\0\0\0\0\0\1\0\0\0"..= ., > 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20 > sendmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0, groups=3D000= 00000}, > msg_iov(1)=3D[{"\204\10\0\0\20\0\1\4%\374\263D\0\0\0\0\36\0\0\0\0\0\0\0".= .., > 2180}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 2180 > recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0, groups=3D000= 00000}, > msg_iov(1)=3D[{"$\0\0\0\2\0\0\0%\374\263D\262\24\0\0\352\377\377\377\204"= ..., > 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 36 > dup(2) =3D 4 > fcntl64(4, F_GETFL) =3D 0x2 (flags O_RDWR) > fstat64(4, {st_mode=3DS_IFCHR|0620, st_rdev=3Dmakedev(136, 1), ...}) =3D 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)= =3D > 0xb7f1b000 > _llseek(4, 0, 0xbf92b508, SEEK_CUR) =3D -1 ESPIPE (Illegal seek) > write(4, "RTNETLINK answers: Invalid argum"..., 36) =3D 36 > close(4) =3D 0 > munmap(0xb7f1b000, 4096) =3D 0 > exit_group(2) =3D ? >=20 > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > mpls-linux-devel mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel --=20 James R. Leu jl...@mi... |
From: Marina M. <mac...@gm...> - 2006-07-12 18:16:14
|
Hi James, actually I compiled MPLS as a part of the kernel, not as a Module (by chosing Yes in .config). I tried also to compile and load it as a separate module but it didn't work. I also loaded as separate modules mpls4 and ipt_mpls. Is that enough to include IPv4 binding or I'm still missing something?? Thanks a lot for your precious information, Marina 2006/7/11, James R. Leu <jl...@mi...>: > > Hello Marina, > > Did you compile MPLS as a module? Did you include IPv4 bindings for MPLS? > Did you load the mpls4 module? > > On Tue, Jul 11, 2006 at 10:30:55PM +0200, Marina Mariano wrote: > > Hi Mr. Leu, hi everybody, > > > > I'm a Computer Software Engineer student and I'm developing my > dissertation > > on Load Balancing with MPLS routing. > > > > I'm trying to use the version 1.950 of the MPLS routing, but I'm facing > some > > configuration problem after compiling the patch from the sources; I > kindly > > ask you to help me in this phase. > > > > I'm using a Debian distribution with the following items: > > * Linux kernel v. 2.6.16.2 > > * iproute2-2.6.16-060323 > > * iptables-1.3.5 > > * ebtables-v2.0.8-rc2 > > * quagga-0.99.4 > > and, of course, mpls-linux-1.950. > > > > I applied the patches to the kernel in the indicated order; I found some > > rejections (.rej), but I "easily" solved them by hands by slightly > modifying > > the source code (adding header files, removing ".owner"...) > > > > My configuration correctly shows the MPLS module as present; I compiled > with > > no error and installed the new MPLS-powered kernel. > > > > Despite that, on invoking any MPLS operation (like mpls add nhlfe 0...). > I > > get this message: > > RTNETLINK answers: invalid argument > > > > I'm sure that I'm missing something tremendously obvious! > > > > In the following, the systrace output for "mpls nhlfe add key 0" - hope > it > > helps. > > > > Thank you in advance for any help. > > Best regards, > > Marina Mariano > > > > systrace begins.... > > > > execve("/sbin/mpls", ["mpls", "nhlfe", "add", "key", "0"], [/* 28 vars > */]) > > = 0 > > uname({sys="Linux", node="debian", ...}) = 0 > > brk(0) = 0x8053000 > > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) > > = 0xb7f1c000 > > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > > directory) > > open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or > > directory) > > open("/etc/ld.so.cache", O_RDONLY) = 3 > > fstat64(3, {st_mode=S_IFREG|0777, st_size=55830, ...}) = 0 > > old_mmap(NULL, 55830, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f0e000 > > close(3) = 0 > > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > > directory) > > open("/lib/tls/libm.so.6", O_RDONLY) = 3 > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\00005\0\000"..., > 512) > > = 512 > > fstat64(3, {st_mode=S_IFREG|0777, st_size=134496, ...}) = 0 > > old_mmap(NULL, 136976, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = > 0xb7eec000 > > old_mmap(0xb7f0d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 3, > > 0x20000) = 0xb7f0d000 > > close(3) = 0 > > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > > directory) > > open("/lib/tls/libresolv.so.2", O_RDONLY) = 3 > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220)\0"..., > 512) = > > 512 > > fstat64(3, {st_mode=S_IFREG|0777, st_size=64924, ...}) = 0 > > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) > > = 0xb7eeb000 > > old_mmap(NULL, 73640, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = > 0xb7ed9000 > > old_mmap(0xb7ee8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 3, > > 0xf000) = 0xb7ee8000 > > old_mmap(0xb7ee9000, 8104, PROT_READ|PROT_WRITE, > > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ee9000 > > close(3) = 0 > > access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or > > directory) > > open("/lib/tls/libc.so.6", O_RDONLY) = 3 > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Z\1\000"..., > 512) = > > 512 > > fstat64(3, {st_mode=S_IFREG|0777, st_size=1254468, ...}) = 0 > > old_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = > 0xb7da4000 > > old_mmap(0xb7ece000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > 3, > > 0x129000) = 0xb7ece000 > > old_mmap(0xb7ed7000, 7308, PROT_READ|PROT_WRITE, > > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ed7000 > > close(3) = 0 > > set_thread_area({entry_number:-1 -> 6, base_addr:0xb7eebb80, > limit:1048575, > > seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, > > seg_not_present:0, useable:1}) = 0 > > munmap(0xb7f0e000, 55830) = 0 > > socket(PF_NETLINK, SOCK_RAW, 0) = 3 > > setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0 > > setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0 > > bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 > > getsockname(3, {sa_family=AF_NETLINK, pid=5298, groups=00000000}, [12]) > = 0 > > time(NULL) = 1152646179 > > sendto(3, "\24\0\0\0\22\0\1\3$\374\263D\0\0\0\0\0\200\0\0", 20, 0, > > {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 > > recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, > > > msg_iov(1)=[{"\344\0\0\0\20\0\2\0$\374\263D\262\24\0\0\0\0\4\3\1\0\0"..., > > 16384}], msg_controllen=0, msg_flags=0}, 0) = 896 > > brk(0) = 0x8053000 > > brk(0x8074000) = 0x8074000 > > brk(0) = 0x8074000 > > recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, > > > msg_iov(1)=[{"\24\0\0\0\3\0\2\0$\374\263D\262\24\0\0\0\0\0\0\1\0\0\0"..., > > 16384}], msg_controllen=0, msg_flags=0}, 0) = 20 > > sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, > > > msg_iov(1)=[{"\204\10\0\0\20\0\1\4%\374\263D\0\0\0\0\36\0\0\0\0\0\0\0"..., > > 2180}], msg_controllen=0, msg_flags=0}, 0) = 2180 > > recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, > > > msg_iov(1)=[{"$\0\0\0\2\0\0\0%\374\263D\262\24\0\0\352\377\377\377\204"..., > > 16384}], msg_controllen=0, msg_flags=0}, 0) = 36 > > dup(2) = 4 > > fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) > > fstat64(4, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 > > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = > > 0xb7f1b000 > > _llseek(4, 0, 0xbf92b508, SEEK_CUR) = -1 ESPIPE (Illegal seek) > > write(4, "RTNETLINK answers: Invalid argum"..., 36) = 36 > > close(4) = 0 > > munmap(0xb7f1b000, 4096) = 0 > > exit_group(2) = ? > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > mpls-linux-devel mailing list > > mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel > > > -- > James R. Leu > jl...@mi... > > > |
From: James R. L. <jl...@mi...> - 2006-07-12 18:24:56
|
On Wed, Jul 12, 2006 at 08:16:12PM +0200, Marina Mariano wrote: > Hi James, >=20 > actually I compiled MPLS as a part of the kernel, not as a Module (by > chosing Yes in .config). I tried also to compile and load it as a separate > module but it didn't work. >=20 > I also loaded as separate modules mpls4 and ipt_mpls. > Is that enough to include IPv4 binding or I'm still missing something?? I'm not sure having MPLS compiled in and mpls4 as a module will work (I've never tried it). If your going to compile MPLS into the kernel you probably should compile mpls4 in as well. ipt_mpls is not needed unless your going to use iptables to map traffic onto LSPs. mpls and mpls4 allow for using the iproute2 commands to map traffic onto a LSP. BTW if your interested in contributing your research back to the project I might have some suggestions as to where you should hook into the mpls stack. > Thanks a lot for your precious information, > Marina >=20 >=20 > 2006/7/11, James R. Leu <jl...@mi...>: > > > >Hello Marina, > > > >Did you compile MPLS as a module? Did you include IPv4 bindings for MPL= S? > >Did you load the mpls4 module? > > > >On Tue, Jul 11, 2006 at 10:30:55PM +0200, Marina Mariano wrote: > >> Hi Mr. Leu, hi everybody, > >> > >> I'm a Computer Software Engineer student and I'm developing my > >dissertation > >> on Load Balancing with MPLS routing. > >> > >> I'm trying to use the version 1.950 of the MPLS routing, but I'm facing > >some > >> configuration problem after compiling the patch from the sources; I > >kindly > >> ask you to help me in this phase. > >> > >> I'm using a Debian distribution with the following items: > >> * Linux kernel v. 2.6.16.2 > >> * iproute2-2.6.16-060323 > >> * iptables-1.3.5 > >> * ebtables-v2.0.8-rc2 > >> * quagga-0.99.4 > >> and, of course, mpls-linux-1.950. > >> > >> I applied the patches to the kernel in the indicated order; I found so= me > >> rejections (.rej), but I "easily" solved them by hands by slightly > >modifying > >> the source code (adding header files, removing ".owner"...) > >> > >> My configuration correctly shows the MPLS module as present; I compiled > >with > >> no error and installed the new MPLS-powered kernel. > >> > >> Despite that, on invoking any MPLS operation (like mpls add nhlfe 0...= ). > >I > >> get this message: > >> RTNETLINK answers: invalid argument > >> > >> I'm sure that I'm missing something tremendously obvious! > >> > >> In the following, the systrace output for "mpls nhlfe add key 0" - hope > >it > >> helps. > >> > >> Thank you in advance for any help. > >> Best regards, > >> Marina Mariano > >> > >> systrace begins.... > >> > >> execve("/sbin/mpls", ["mpls", "nhlfe", "add", "key", "0"], [/* 28 vars > >*/]) > >> =3D 0 > >> uname({sys=3D"Linux", node=3D"debian", ...}) =3D 0 > >> brk(0) =3D 0x8053000 > >> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > >-1, 0) > >> =3D 0xb7f1c000 > >> access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such file or > >> directory) > >> open("/etc/ld.so.preload", O_RDONLY) =3D -1 ENOENT (No such file or > >> directory) > >> open("/etc/ld.so.cache", O_RDONLY) =3D 3 > >> fstat64(3, {st_mode=3DS_IFREG|0777, st_size=3D55830, ...}) =3D 0 > >> old_mmap(NULL, 55830, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7f0e000 > >> close(3) =3D 0 > >> access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such file or > >> directory) > >> open("/lib/tls/libm.so.6", O_RDONLY) =3D 3 > >> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\00005\0\000"..., > >512) > >> =3D 512 > >> fstat64(3, {st_mode=3DS_IFREG|0777, st_size=3D134496, ...}) =3D 0 > >> old_mmap(NULL, 136976, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D > >0xb7eec000 > >> old_mmap(0xb7f0d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > >3, > >> 0x20000) =3D 0xb7f0d000 > >> close(3) =3D 0 > >> access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such file or > >> directory) > >> open("/lib/tls/libresolv.so.2", O_RDONLY) =3D 3 > >> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220)\0"..., > >512) =3D > >> 512 > >> fstat64(3, {st_mode=3DS_IFREG|0777, st_size=3D64924, ...}) =3D 0 > >> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > >-1, 0) > >> =3D 0xb7eeb000 > >> old_mmap(NULL, 73640, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D > >0xb7ed9000 > >> old_mmap(0xb7ee8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, > >3, > >> 0xf000) =3D 0xb7ee8000 > >> old_mmap(0xb7ee9000, 8104, PROT_READ|PROT_WRITE, > >> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ee9000 > >> close(3) =3D 0 > >> access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such file or > >> directory) > >> open("/lib/tls/libc.so.6", O_RDONLY) =3D 3 > >> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Z\1\000"..., > >512) =3D > >> 512 > >> fstat64(3, {st_mode=3DS_IFREG|0777, st_size=3D1254468, ...}) =3D 0 > >> old_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D > >0xb7da4000 > >> old_mmap(0xb7ece000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXE= D, > >3, > >> 0x129000) =3D 0xb7ece000 > >> old_mmap(0xb7ed7000, 7308, PROT_READ|PROT_WRITE, > >> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ed7000 > >> close(3) =3D 0 > >> set_thread_area({entry_number:-1 -> 6, base_addr:0xb7eebb80, > >limit:1048575, > >> seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, > >> seg_not_present:0, useable:1}) =3D 0 > >> munmap(0xb7f0e000, 55830) =3D 0 > >> socket(PF_NETLINK, SOCK_RAW, 0) =3D 3 > >> setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) =3D 0 > >> setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) =3D 0 > >> bind(3, {sa_family=3DAF_NETLINK, pid=3D0, groups=3D00000000}, 12) =3D 0 > >> getsockname(3, {sa_family=3DAF_NETLINK, pid=3D5298, groups=3D00000000}= , [12]) > >=3D 0 > >> time(NULL) =3D 1152646179 > >> sendto(3, "\24\0\0\0\22\0\1\3$\374\263D\0\0\0\0\0\200\0\0", 20, 0, > >> {sa_family=3DAF_NETLINK, pid=3D0, groups=3D00000000}, 12) =3D 20 > >> recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0, groups=3D= 00000000}, > >> > >msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0$\374\263D\262\24\0\0\0\0\4\3\1\0\0".= .., > >> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 896 > >> brk(0) =3D 0x8053000 > >> brk(0x8074000) =3D 0x8074000 > >> brk(0) =3D 0x8074000 > >> recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0, groups=3D= 00000000}, > >> > >msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0$\374\263D\262\24\0\0\0\0\0\0\1\0\0\0".= .., > >> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20 > >> sendmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0, groups=3D= 00000000}, > >> > >msg_iov(1)=3D[{"\204\10\0\0\20\0\1\4%\374\263D\0\0\0\0\36\0\0\0\0\0\0\0"= ..., > >> 2180}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 2180 > >> recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0, groups=3D= 00000000}, > >> > >msg_iov(1)=3D[{"$\0\0\0\2\0\0\0%\374\263D\262\24\0\0\352\377\377\377\204= "..., > >> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 36 > >> dup(2) =3D 4 > >> fcntl64(4, F_GETFL) =3D 0x2 (flags O_RDWR) > >> fstat64(4, {st_mode=3DS_IFCHR|0620, st_rdev=3Dmakedev(136, 1), ...}) = =3D 0 > >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > >0) =3D > >> 0xb7f1b000 > >> _llseek(4, 0, 0xbf92b508, SEEK_CUR) =3D -1 ESPIPE (Illegal seek) > >> write(4, "RTNETLINK answers: Invalid argum"..., 36) =3D 36 > >> close(4) =3D 0 > >> munmap(0xb7f1b000, 4096) =3D 0 > >> exit_group(2) =3D ? > > > >> > >> > >------------------------------------------------------------------------- > >> Using Tomcat but need to do more? Need to support web services, > >security? > >> Get stuff done quickly with pre-integrated technology to make your job > >easier > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache > >Geronimo > >> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&da= t=3D121642 > > > >> _______________________________________________ > >> mpls-linux-devel mailing list > >> mpl...@li... > >> https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel > > > > > >-- > >James R. Leu > >jl...@mi... > > > > > > --=20 James R. Leu jl...@mi... |