Thread: [mpls-linux-general] mpls command does not return
Status: Beta
Brought to you by:
jleu
|
From: Bob B. <bob...@gm...> - 2005-12-07 17:54:40
|
Hi, I'm using dev tree (1.950) and trying to implement the simple Linux example. I have sync'd as of today (2005/12/07). I run into trouble in 2 places uml1: 'mpls nhlfe show' and uml2: 'mpls labelspace add dev eth0 labelspace 0' in both cases function never returns. Help please, -- -Bob |
|
From: James R. L. <jl...@mi...> - 2005-12-07 19:38:25
|
Can you post the full set of mpls commands you issued? I cannot reproduce this on my machines. On Wed, Dec 07, 2005 at 12:54:36PM -0500, Bob Beers wrote: > Hi, >=20 > I'm using dev tree (1.950) and trying to implement the simple > Linux example. >=20 > I have sync'd as of today (2005/12/07). >=20 > I run into trouble in 2 places >=20 > uml1: 'mpls nhlfe show' >=20 > and >=20 > uml2: 'mpls labelspace add dev eth0 labelspace 0' >=20 > in both cases function never returns. >=20 > Help please, >=20 > -- > -Bob >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op?k > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu jl...@mi... |
|
From: Bob B. <bob...@gm...> - 2005-12-07 20:10:24
|
> Can you post the full set of mpls commands you issued? I cannot
> reproduce this on my machines.
Certainly,
after reboot, and kde startup, let's just start with uml1:
bash-3.00# cat /sys/mpls/version
1.950
bash-3.00# mpls nhlfe add key 0
NHLFE entry key 0x00000002 mtu 0 propagate_ttl
(0 bytes, 0 pkts)
bash-3.00# mpls nhlfe change key 0x2 instructions push gen 10000
nexthop eth0 ipv4 172.16.87.21
bash-3.00# /usr/sbin/ip route add 172.16.87.21/32 via 172.16.87.21 mpls 0x2
bash-3.00# /usr/sbin/ip route show
172.16.87.21 via 172.16.87.21 dev eth0 mpls 0x2
172.16.87.0/24 dev eth0 proto kernel scope link src 172.16.87.11
192.168.10.0/24 dev eth1 proto kernel scope link src 192.168.10.11
127.0.0.0/8 dev lo scope link
default via 192.168.10.7 dev eth1
bash-3.00# mpls nhlfe show
and it never returns, the console is not locked-up, just never returns with=
out
a ^C.
here is some other info:
bash-3.00# dmesg | grep MPLS
MPLS: version 1.950
MPLS: protocol driver interface - <jl...@mi...>
MPLS DEBUG net/mpls/mpls_sysfs.c:136:mpls_sysfs_init: enter
MPLS DEBUG net/mpls/mpls_sysfs.c:145:mpls_sysfs_init: exit
Registered MPLS tunnel mpls0
MPLS: IPv4 over MPLS support
MPLS DEBUG net/mpls/mpls_ilm.c:126:mpls_ilm_dst_alloc: enter
MPLS DEBUG net/mpls/mpls_ilm.c:156:mpls_ilm_dst_alloc: exit
MPLS: IPv6 over MPLS support
MPLS DEBUG net/mpls/mpls_ilm.c:126:mpls_ilm_dst_alloc: enter
MPLS DEBUG net/mpls/mpls_ilm.c:109:ilm_dst_gc: enter
MPLS DEBUG net/mpls/mpls_ilm.c:110:ilm_dst_gc: exit
MPLS DEBUG net/mpls/mpls_ilm.c:156:mpls_ilm_dst_alloc: exit
MPLS: Ethernet over MPLS support
MPLS DEBUG net/mpls/mpls_netlink.c:302:genl_mpls_nhlfe_new: enter
MPLS DEBUG net/mpls/mpls_nhlfe.c:394:mpls_add_out_label: enter
MPLS DEBUG net/mpls/mpls_nhlfe.c:130:nhlfe_dst_alloc: enter
MPLS DEBUG net/mpls/mpls_nhlfe.c:151:nhlfe_dst_alloc: exit
MPLS DEBUG net/mpls/mpls_netlink.c:279:mpls_nhlfe_event: enter
MPLS DEBUG net/mpls/mpls_netlink.c:249:mpls_fill_nhlfe: enter
MPLS DEBUG net/mpls/mpls_netlink.c:49:mpls_copy_instr: enter
MPLS DEBUG net/mpls/mpls_netlink.c:63:mpls_copy_instr: exit
MPLS DEBUG net/mpls/mpls_netlink.c:266:mpls_fill_nhlfe: exit
MPLS DEBUG net/mpls/mpls_netlink.c:293:mpls_nhlfe_event: exit
MPLS DEBUG net/mpls/mpls_nhlfe.c:451:mpls_add_out_label: exit
MPLS DEBUG net/mpls/mpls_netlink.c:339:genl_mpls_nhlfe_new: Exit: 0
MPLS DEBUG net/mpls/mpls_netlink.c:302:genl_mpls_nhlfe_new: enter
MPLS DEBUG net/mpls/mpls_opcode.c:345:mpls_build_opcode_push: enter
MPLS DEBUG net/mpls/mpls_opcode.c:356:mpls_build_opcode_push: exit
MPLS DEBUG net/mpls/mpls_opcode.c:1035:mpls_build_opcode_set: enter
MPLS DEBUG net/mpls/mpls_dst.c:169:mpls_dst_alloc: enter
MPLS DEBUG net/mpls/mpls_dst.c:204:mpls_dst_alloc: exit(e8668e80)
MPLS DEBUG net/mpls/mpls_opcode.c:1100:mpls_build_opcode_set: exit
MPLS DEBUG net/mpls/mpls_netlink.c:339:genl_mpls_nhlfe_new: Exit: 0
MPLS DEBUG net/mpls/mpls_netlink.c:398:genl_mpls_nhlfe_dump: Enter: entry 0
MPLS DEBUG net/mpls/mpls_netlink.c:402:genl_mpls_nhlfe_dump: Dump: entry 0
MPLS DEBUG net/mpls/mpls_netlink.c:249:mpls_fill_nhlfe: enter
MPLS DEBUG net/mpls/mpls_netlink.c:49:mpls_copy_instr: enter
MPLS DEBUG net/mpls/mpls_opcode.c:364:mpls_unbuild_opcode_push: enter
MPLS DEBUG net/mpls/mpls_opcode.c:369:mpls_unbuild_opcode_push: exit
MPLS DEBUG net/mpls/mpls_opcode.c:1109:mpls_unbuild_opcode_set: enter
MPLS DEBUG net/mpls/mpls_opcode.c:1115:mpls_unbuild_opcode_set: exit
MPLS DEBUG net/mpls/mpls_netlink.c:63:mpls_copy_instr: exit
MPLS DEBUG net/mpls/mpls_netlink.c:266:mpls_fill_nhlfe: exit
MPLS DEBUG net/mpls/mpls_netlink.c:419:genl_mpls_nhlfe_dump: Exit: entry 1
MPLS DEBUG net/mpls/mpls_netlink.c:398:genl_mpls_nhlfe_dump: Enter: entry 1
MPLS DEBUG net/mpls/mpls_netlink.c:402:genl_mpls_nhlfe_dump: Dump: entry 0
MPLS DEBUG net/mpls/mpls_netlink.c:419:genl_mpls_nhlfe_dump: Exit: entry 1
bash-3.00#
bash-3.00# uname -a
Linux alakazam 2.6.15-rc1-mpls #11 SMP PREEMPT Tue Dec 6 15:29:07 EST
2005 i686 unknown unknown GNU/Linux
bash-3.00#
bash-3.00# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.66GHz
stepping : 9
cpu MHz : 2667.073
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips : 5342.33
bash-3.00#
bash-3.00# free
total used free shared buffers cached
Mem: 903060 418412 484648 0 43336 224788
-/+ buffers/cache: 150288 752772
Swap: 0 0 0
bash-3.00#
Do you want to see my .config? I don't really need the SMP or
PREEMPT, I suppose.
-Bob
|
|
From: Bob B. <bob...@gm...> - 2005-12-07 21:51:50
|
On 12/7/05, Bob Beers <bob...@gm...> wrote:
> Do you want to see my .config? I don't really need the SMP or
> PREEMPT, I suppose.
So, I recompiled without SMP, (don't recall how that got turned
on actually), but it make no difference.
bash-3.00# uname -a
Linux alakazam 2.6.15-rc1-mpls #14 PREEMPT Wed Dec 7 15:37:27 EST 2005
i686 unknown unknown GNU/Linux
bash-3.00#
Any ideas?
If I run strace with the command I get this:
bash-3.00# strace mpls nhlfe show
execve("/usr/sbin/mpls", ["mpls", "nhlfe", "show"], [/* 40 vars */]) =3D 0
uname({sys=3D"Linux", node=3D"alakazam", ...}) =3D 0
brk(0) =3D 0x8053000
access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or dire=
ctory)
open("/etc/ld.so.cache", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D116448, ...}) =3D 0
mmap2(NULL, 116448, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7efa000
close(3) =3D 0
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\0P3\0\000"..., 512) =
=3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D176352, ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) =3D 0xb7ef9000
mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) =3D 0xb7ed6000
mmap2(0xb7ef7000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) =3D 0xb7ef7000
close(3) =3D 0
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\200$\0"..., 512) =
=3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D73805, ...}) =3D 0
mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) =3D 0xb7ec3000
mprotect(0xb7ed1000, 18632, PROT_NONE) =3D 0
mmap2(0xb7ed2000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) =3D 0xb7ed2000
mmap2(0xb7ed4000, 6344, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ed4000
close(3) =3D 0
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\300P\1"..., 512) =
=3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1366940, ...}) =3D 0
mmap2(NULL, 1162428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) =3D 0xb7da7000
mprotect(0xb7ebc000, 27836, PROT_NONE) =3D 0
mmap2(0xb7ebd000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) =3D 0xb7ebd000
mmap2(0xb7ec1000, 7356, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ec1000
close(3) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) =3D 0xb7da6000
mprotect(0xb7ebd000, 4096, PROT_READ) =3D 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7da66c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
munmap(0xb7efa000, 116448) =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=3D4204, groups=3D00000000}, [12=
]) =3D 0
time(NULL) =3D 1133992313
sendto(3, "\24\0\0\0\22\0\1\3zY\227C\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=3D00000000},
msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0zY\227Cl\20\0\0\0\0\4\3\1\0\0\0I\0\0"...=
,
16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 1148
brk(0) =3D 0x8053000
brk(0x8074000) =3D 0x8074000
recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
groups=3D00000000},
msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0zY\227Cl\20\0\0\0\0\0\0\1\0\0\0I\0\0\0"...=
,
16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
close(3) =3D 0
socket(PF_NETLINK, SOCK_RAW, 16) =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=3D0000ffff}, 12) =3D 0
getsockname(3, {sa_family=3DAF_NETLINK, pid=3D4204, groups=3D0000ffff}, [12=
]) =3D 0
time(NULL) =3D 1133992314
sendto(3, "\24\0\0\0\36\0\1\3\0\0\0\0\0\0\0\0\6\0\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=3D00000000},
msg_iov(1)=3D[{"\224\10\0\0\36\0\2\0\0\0\0\0l\20\0\0\4\1\0\0\30\0\2\0\4"...=
,
16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 2196
recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
groups=3D00000000},
msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\0\0\0\0l\20\0\0\0\0\0\0\30\0\2\0\4\0"...,
16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
recvmsg(3,
and it stops there. Does this shed any light?
on uml2: the very first command --
'mpls labelspace add dev eth0 labelspace 0'
hangs similar to 'mpls nhlfe show' on uml1.
If you have any suggestions about debugging this, I'll be happy
to try to help isolate the problem. Thanks,
--
-Bob
|
|
From: Bob B. <bob...@gm...> - 2005-12-07 23:09:19
|
After looking at the debug output over and over, I thought:
Maybe the command did what it is supposed to, but just doesn't
come back.
So, I went ahead and ^C'd after each mpls command which hangs,
and set up uml1 and uml2 as per the example, turned on
a tcpdump session on uml2, began pinging from uml1, and what
do you know! I can see MPLS wrapped pings!
Before mpls config'd on uml1: ping 172.16.87.15:
17:55:37.416603 arp who-has 172.16.87.15 tell 172.16.87.21
0x0000: 0001 0800 0604 0001 0002 3f21 2a05 ac10
0x0010: 5715 0000 0000 0000 ac10 570f 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000
17:55:37.416652 arp reply 172.16.87.15 is-at 08:00:46:97:b9:47 (oui Unknown=
)
0x0000: 0001 0800 0604 0002 0800 4697 b947 ac10
0x0010: 570f 0002 3f21 2a05 ac10 5715
17:55:37.416890 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF],
proto: ICMP (1), length: 84) 172.16.87.21 > 172.16.87.15: ICMP echo
request, id 62988, seq 1, length 64
0x0000: 4500 0054 0000 4000 4001 3464 ac10 5715
0x0010: ac10 570f 0800 718e f60c 0001 d268 9743
0x0020: 2db4 0e00 0809 0a0b 0c0d 0e0f 1011 1213
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
0x0050: 3435
17:55:37.416951 IP (tos 0x0, ttl 64, id 60276, offset 0, flags
[none], proto: ICMP (1), length: 84) 172.16.87.15 > 172.16.87.21: ICMP
echo reply, id 62988, seq 1, length 64
0x0000: 4500 0054 eb74 0000 4001 88ef ac10 570f
0x0010: ac10 5715 0000 798e f60c 0001 d268 9743
0x0020: 2db4 0e00 0809 0a0b 0c0d 0e0f 1011 1213
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
0x0050: 3435
17:55:38.420764 IP (tos 0x0, ttl 64, id 1, offset 0, flags [DF],
proto: ICMP (1), length: 84) 172.16.87.21 > 172.16.87.15: ICMP echo
request, id 62988, seq 2, length 64
0x0000: 4500 0054 0001 4000 4001 3463 ac10 5715
0x0010: ac10 570f 0800 ac73 f60c 0002 d368 9743
0x0020: f1cd 0e00 0809 0a0b 0c0d 0e0f 1011 1213
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
0x0050: 3435
17:55:38.420827 IP (tos 0x0, ttl 64, id 60277, offset 0, flags
[none], proto: ICMP (1), length: 84) 172.16.87.15 > 172.16.87.21: ICMP
echo reply, id 62988, seq 2, length 64
0x0000: 4500 0054 eb75 0000 4001 88ee ac10 570f
0x0010: ac10 5715 0000 b473 f60c 0002 d368 9743
0x0020: f1cd 0e00 0809 0a0b 0c0d 0e0f 1011 1213
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
0x0050: 3435
17:55:39.421344 IP (tos 0x0, ttl 64, id 2, offset 0, flags [DF],
proto: ICMP (1), length: 84) 172.16.87.21 > 172.16.87.15: ICMP echo
request, id 62988, seq 3, length 64
0x0000: 4500 0054 0002 4000 4001 3462 ac10 5715
0x0010: ac10 570f 0800 8670 f60c 0003 d468 9743
0x0020: 16d0 0e00 0809 0a0b 0c0d 0e0f 1011 1213
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
0x0050: 3435
17:55:39.421408 IP (tos 0x0, ttl 64, id 60278, offset 0, flags
[none], proto: ICMP (1), length: 84) 172.16.87.15 > 172.16.87.21: ICMP
echo reply, id 62988, seq 3, length 64
0x0000: 4500 0054 eb76 0000 4001 88ed ac10 570f
0x0010: ac10 5715 0000 8e70 f60c 0003 d468 9743
0x0020: 16d0 0e00 0809 0a0b 0c0d 0e0f 1011 1213
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
0x0050: 3435
17:55:42.414882 arp who-has 172.16.87.21 tell 172.16.87.15
0x0000: 0001 0800 0604 0001 0800 4697 b947 ac10
0x0010: 570f 0000 0000 0000 ac10 5715
17:55:42.415111 arp reply 172.16.87.21 is-at 00:02:3f:21:2a:05 (oui Unknown=
)
0x0000: 0001 0800 0604 0002 0002 3f21 2a05 ac10
0x0010: 5715 0800 4697 b947 ac10 570f 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000
After config'd MPLS on uml1: ping 172.16.87.15:
17:58:36.980404 MPLS (label 10000, exp 0, [S], ttl 64)
IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: ICMP
(1), length: 84) 172.16.87.21 > 172.16.87.15: ICMP echo request, id
269, seq 1, length 64
0x0000: 0271 0140 4500 0054 0000 4000 4001 3464
0x0010: ac10 5715 ac10 570f 0800 9b42 010d 0001
0x0020: 8669 9743 4bff 0700 0809 0a0b 0c0d 0e0f
0x0030: 1011 1213 1415 1617 1819 1a1b 1c1d 1e1f
0x0040: 2021 2223 2425 2627 2829 2a2b 2c2d 2e2f
0x0050: 3031
17:58:36.980545 IP (tos 0x0, ttl 64, id 60279, offset 0, flags
[none], proto: ICMP (1), length: 84) 172.16.87.15 > 172.16.87.21: ICMP
echo reply, id 269, seq 1, length 64
0x0000: 4500 0054 eb77 0000 4001 88ec ac10 570f
0x0010: ac10 5715 0000 a342 010d 0001 8669 9743
0x0020: 4bff 0700 0809 0a0b 0c0d 0e0f 1011 1213
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
0x0050: 3435
17:58:37.985782 MPLS (label 10000, exp 0, [S], ttl 64)
IP (tos 0x0, ttl 64, id 1, offset 0, flags [DF], proto: ICMP
(1), length: 84) 172.16.87.21 > 172.16.87.15: ICMP echo request, id
269, seq 2, length 64
0x0000: 0271 0140 4500 0054 0001 4000 4001 3463
0x0010: ac10 5715 ac10 570f 0800 be2c 010d 0002
0x0020: 8769 9743 2714 0800 0809 0a0b 0c0d 0e0f
0x0030: 1011 1213 1415 1617 1819 1a1b 1c1d 1e1f
0x0040: 2021 2223 2425 2627 2829 2a2b 2c2d 2e2f
0x0050: 3031
17:58:37.985931 IP (tos 0x0, ttl 64, id 60280, offset 0, flags
[none], proto: ICMP (1), length: 84) 172.16.87.15 > 172.16.87.21: ICMP
echo reply, id 269, seq 2, length 64
0x0000: 4500 0054 eb78 0000 4001 88eb ac10 570f
0x0010: ac10 5715 0000 c62c 010d 0002 8769 9743
0x0020: 2714 0800 0809 0a0b 0c0d 0e0f 1011 1213
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
0x0050: 3435
17:58:38.985885 MPLS (label 10000, exp 0, [S], ttl 64)
IP (tos 0x0, ttl 64, id 2, offset 0, flags [DF], proto: ICMP
(1), length: 84) 172.16.87.21 > 172.16.87.15: ICMP echo request, id
269, seq 3, length 64
0x0000: 0271 0140 4500 0054 0002 4000 4001 3462
0x0010: ac10 5715 ac10 570f 0800 762b 010d 0003
0x0020: 8869 9743 6e14 0800 0809 0a0b 0c0d 0e0f
0x0030: 1011 1213 1415 1617 1819 1a1b 1c1d 1e1f
0x0040: 2021 2223 2425 2627 2829 2a2b 2c2d 2e2f
0x0050: 3031
17:58:38.986040 IP (tos 0x0, ttl 64, id 60281, offset 0, flags
[none], proto: ICMP (1), length: 84) 172.16.87.15 > 172.16.87.21: ICMP
echo reply, id 269, seq 3, length 64
0x0000: 4500 0054 eb79 0000 4001 88ea ac10 570f
0x0010: ac10 5715 0000 7e2b 010d 0003 8869 9743
0x0020: 6e14 0800 0809 0a0b 0c0d 0e0f 1011 1213
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
0x0050: 3435
17:58:41.978102 arp who-has 172.16.87.21 tell 172.16.87.15
0x0000: 0001 0800 0604 0001 0800 4697 b947 ac10
0x0010: 570f 0000 0000 0000 ac10 5715
17:58:41.978329 arp reply 172.16.87.21 is-at 00:02:3f:21:2a:05 (oui Unknown=
)
0x0000: 0001 0800 0604 0002 0002 3f21 2a05 ac10
0x0010: 5715 0800 4697 b947 ac10 570f 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000
This is good news, but why won't the mpls functions return correctly
for me?
--
-Bob
|
|
From: James R. L. <jl...@mi...> - 2005-12-08 04:27:24
|
On Wed, Dec 07, 2005 at 04:51:45PM -0500, Bob Beers wrote:
> On 12/7/05, Bob Beers <bob...@gm...> wrote:
> > Do you want to see my .config? I don't really need the SMP or
> > PREEMPT, I suppose.
>=20
>=20
> So, I recompiled without SMP, (don't recall how that got turned
> on actually), but it make no difference.
Oh... Ignore my last email. I'm still searching ....
> bash-3.00# uname -a
> Linux alakazam 2.6.15-rc1-mpls #14 PREEMPT Wed Dec 7 15:37:27 EST 2005
> i686 unknown unknown GNU/Linux
> bash-3.00#
>=20
> Any ideas?
>=20
> If I run strace with the command I get this:
> bash-3.00# strace mpls nhlfe show
> execve("/usr/sbin/mpls", ["mpls", "nhlfe", "show"], [/* 40 vars */]) =3D 0
> uname({sys=3D"Linux", node=3D"alakazam", ...}) =3D 0
> brk(0) =3D 0x8053000
> access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or di=
rectory)
> open("/etc/ld.so.cache", O_RDONLY) =3D 3
> fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D116448, ...}) =3D 0
> mmap2(NULL, 116448, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7efa000
> close(3) =3D 0
> 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\0P3\0\000"..., 512=
) =3D 512
> fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D176352, ...}) =3D 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) =3D 0xb7ef9000
> mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) =3D 0xb7ed6000
> mmap2(0xb7ef7000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) =3D 0xb7ef7000
> close(3) =3D 0
> 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\200$\0"..., 512)=
=3D 512
> fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D73805, ...}) =3D 0
> mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) =3D 0xb7ec3000
> mprotect(0xb7ed1000, 18632, PROT_NONE) =3D 0
> mmap2(0xb7ed2000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) =3D 0xb7ed2000
> mmap2(0xb7ed4000, 6344, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ed4000
> close(3) =3D 0
> 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\300P\1"..., 512)=
=3D 512
> fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1366940, ...}) =3D 0
> mmap2(NULL, 1162428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
> 3, 0) =3D 0xb7da7000
> mprotect(0xb7ebc000, 27836, PROT_NONE) =3D 0
> mmap2(0xb7ebd000, 16384, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) =3D 0xb7ebd000
> mmap2(0xb7ec1000, 7356, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ec1000
> close(3) =3D 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) =3D 0xb7da6000
> mprotect(0xb7ebd000, 4096, PROT_READ) =3D 0
> set_thread_area({entry_number:-1 -> 6, base_addr:0xb7da66c0,
> limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
> limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
> munmap(0xb7efa000, 116448) =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=3D4204, groups=3D00000000}, [=
12]) =3D 0
> time(NULL) =3D 1133992313
> sendto(3, "\24\0\0\0\22\0\1\3zY\227C\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=3D00000000},
> msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0zY\227Cl\20\0\0\0\0\4\3\1\0\0\0I\0\0".=
..,
> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 1148
> brk(0) =3D 0x8053000
> brk(0x8074000) =3D 0x8074000
> recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> groups=3D00000000},
> msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0zY\227Cl\20\0\0\0\0\0\0\1\0\0\0I\0\0\0".=
..,
> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
> close(3) =3D 0
> socket(PF_NETLINK, SOCK_RAW, 16) =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=3D0000ffff}, 12) =3D 0
> getsockname(3, {sa_family=3DAF_NETLINK, pid=3D4204, groups=3D0000ffff}, [=
12]) =3D 0
> time(NULL) =3D 1133992314
> sendto(3, "\24\0\0\0\36\0\1\3\0\0\0\0\0\0\0\0\6\0\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=3D00000000},
> msg_iov(1)=3D[{"\224\10\0\0\36\0\2\0\0\0\0\0l\20\0\0\4\1\0\0\30\0\2\0\4".=
..,
> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 2196
> recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> groups=3D00000000},
> msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\0\0\0\0l\20\0\0\0\0\0\0\30\0\2\0\4\0"..=
.,
> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
> recvmsg(3,
>=20
> and it stops there. Does this shed any light?
>=20
>=20
> on uml2: the very first command --
> 'mpls labelspace add dev eth0 labelspace 0'
> hangs similar to 'mpls nhlfe show' on uml1.
>=20
> If you have any suggestions about debugging this, I'll be happy
> to try to help isolate the problem. Thanks,
>=20
> --
> -Bob
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id=16865&op?k
> _______________________________________________
> mpls-linux-general mailing list
> mpl...@li...
> https://lists.sourceforge.net/lists/listinfo/mpls-linux-general
--=20
James R. Leu
jl...@mi...
|
|
From: Joan R. <jr...@sa...> - 2005-12-12 15:54:47
|
Hi all, I figure out that the latest version of quagga with mpls support in the Perforce repository is quagga-mpls / ldp-portable. Isn't it? Are you currently working on that (i see that the last changes were made on july)? I wonder if quagga-mpls is ready to be built with the latest kernel headers. Have you tried to build it lately? Joan. |
|
From: James R. L. <jl...@mi...> - 2005-12-12 16:06:11
|
On Mon, Dec 12, 2005 at 04:53:59PM +0100, Joan Ruiz wrote: > =20 > Hi all, >=20 > I figure out that the latest version of quagga with mpls support in the > Perforce repository is quagga-mpls / ldp-portable. Isn't it? > Are you currently working on that (i see that the last changes were made = on > july)? I have not made any changes to quagga-mpls/ldp-portable since july. > I wonder if quagga-mpls is ready to be built with the latest kernel heade= rs. > Have you tried to build it lately? No. > Joan. --=20 James R. Leu jl...@mi... |
|
From: James R. L. <jl...@mi...> - 2005-12-08 04:25:25
|
I have a theory about it having something to do with SMP. Can your try compiling as a UP kernel and see if the problem persists? On Wed, Dec 07, 2005 at 03:10:19PM -0500, Bob Beers wrote: > > Can you post the full set of mpls commands you issued? I cannot > > reproduce this on my machines. >=20 > Certainly, > after reboot, and kde startup, let's just start with uml1: >=20 > bash-3.00# cat /sys/mpls/version > 1.950 > bash-3.00# mpls nhlfe add key 0 > NHLFE entry key 0x00000002 mtu 0 propagate_ttl > (0 bytes, 0 pkts) > bash-3.00# mpls nhlfe change key 0x2 instructions push gen 10000 > nexthop eth0 ipv4 172.16.87.21 > bash-3.00# /usr/sbin/ip route add 172.16.87.21/32 via 172.16.87.21 mpls 0= x2 > bash-3.00# /usr/sbin/ip route show > 172.16.87.21 via 172.16.87.21 dev eth0 mpls 0x2 > 172.16.87.0/24 dev eth0 proto kernel scope link src 172.16.87.11 > 192.168.10.0/24 dev eth1 proto kernel scope link src 192.168.10.11 > 127.0.0.0/8 dev lo scope link > default via 192.168.10.7 dev eth1 > bash-3.00# mpls nhlfe show >=20 > and it never returns, the console is not locked-up, just never returns wi= thout > a ^C. >=20 > here is some other info: >=20 > bash-3.00# dmesg | grep MPLS > MPLS: version 1.950 > MPLS: protocol driver interface - <jl...@mi...> > MPLS DEBUG net/mpls/mpls_sysfs.c:136:mpls_sysfs_init: enter > MPLS DEBUG net/mpls/mpls_sysfs.c:145:mpls_sysfs_init: exit > Registered MPLS tunnel mpls0 > MPLS: IPv4 over MPLS support > MPLS DEBUG net/mpls/mpls_ilm.c:126:mpls_ilm_dst_alloc: enter > MPLS DEBUG net/mpls/mpls_ilm.c:156:mpls_ilm_dst_alloc: exit > MPLS: IPv6 over MPLS support > MPLS DEBUG net/mpls/mpls_ilm.c:126:mpls_ilm_dst_alloc: enter > MPLS DEBUG net/mpls/mpls_ilm.c:109:ilm_dst_gc: enter > MPLS DEBUG net/mpls/mpls_ilm.c:110:ilm_dst_gc: exit > MPLS DEBUG net/mpls/mpls_ilm.c:156:mpls_ilm_dst_alloc: exit > MPLS: Ethernet over MPLS support > MPLS DEBUG net/mpls/mpls_netlink.c:302:genl_mpls_nhlfe_new: enter > MPLS DEBUG net/mpls/mpls_nhlfe.c:394:mpls_add_out_label: enter > MPLS DEBUG net/mpls/mpls_nhlfe.c:130:nhlfe_dst_alloc: enter > MPLS DEBUG net/mpls/mpls_nhlfe.c:151:nhlfe_dst_alloc: exit > MPLS DEBUG net/mpls/mpls_netlink.c:279:mpls_nhlfe_event: enter > MPLS DEBUG net/mpls/mpls_netlink.c:249:mpls_fill_nhlfe: enter > MPLS DEBUG net/mpls/mpls_netlink.c:49:mpls_copy_instr: enter > MPLS DEBUG net/mpls/mpls_netlink.c:63:mpls_copy_instr: exit > MPLS DEBUG net/mpls/mpls_netlink.c:266:mpls_fill_nhlfe: exit > MPLS DEBUG net/mpls/mpls_netlink.c:293:mpls_nhlfe_event: exit > MPLS DEBUG net/mpls/mpls_nhlfe.c:451:mpls_add_out_label: exit > MPLS DEBUG net/mpls/mpls_netlink.c:339:genl_mpls_nhlfe_new: Exit: 0 > MPLS DEBUG net/mpls/mpls_netlink.c:302:genl_mpls_nhlfe_new: enter > MPLS DEBUG net/mpls/mpls_opcode.c:345:mpls_build_opcode_push: enter > MPLS DEBUG net/mpls/mpls_opcode.c:356:mpls_build_opcode_push: exit > MPLS DEBUG net/mpls/mpls_opcode.c:1035:mpls_build_opcode_set: enter > MPLS DEBUG net/mpls/mpls_dst.c:169:mpls_dst_alloc: enter > MPLS DEBUG net/mpls/mpls_dst.c:204:mpls_dst_alloc: exit(e8668e80) > MPLS DEBUG net/mpls/mpls_opcode.c:1100:mpls_build_opcode_set: exit > MPLS DEBUG net/mpls/mpls_netlink.c:339:genl_mpls_nhlfe_new: Exit: 0 > MPLS DEBUG net/mpls/mpls_netlink.c:398:genl_mpls_nhlfe_dump: Enter: entry= 0 > MPLS DEBUG net/mpls/mpls_netlink.c:402:genl_mpls_nhlfe_dump: Dump: entry 0 > MPLS DEBUG net/mpls/mpls_netlink.c:249:mpls_fill_nhlfe: enter > MPLS DEBUG net/mpls/mpls_netlink.c:49:mpls_copy_instr: enter > MPLS DEBUG net/mpls/mpls_opcode.c:364:mpls_unbuild_opcode_push: enter > MPLS DEBUG net/mpls/mpls_opcode.c:369:mpls_unbuild_opcode_push: exit > MPLS DEBUG net/mpls/mpls_opcode.c:1109:mpls_unbuild_opcode_set: enter > MPLS DEBUG net/mpls/mpls_opcode.c:1115:mpls_unbuild_opcode_set: exit > MPLS DEBUG net/mpls/mpls_netlink.c:63:mpls_copy_instr: exit > MPLS DEBUG net/mpls/mpls_netlink.c:266:mpls_fill_nhlfe: exit > MPLS DEBUG net/mpls/mpls_netlink.c:419:genl_mpls_nhlfe_dump: Exit: entry 1 > MPLS DEBUG net/mpls/mpls_netlink.c:398:genl_mpls_nhlfe_dump: Enter: entry= 1 > MPLS DEBUG net/mpls/mpls_netlink.c:402:genl_mpls_nhlfe_dump: Dump: entry 0 > MPLS DEBUG net/mpls/mpls_netlink.c:419:genl_mpls_nhlfe_dump: Exit: entry 1 > bash-3.00# >=20 > bash-3.00# uname -a > Linux alakazam 2.6.15-rc1-mpls #11 SMP PREEMPT Tue Dec 6 15:29:07 EST > 2005 i686 unknown unknown GNU/Linux > bash-3.00# > bash-3.00# cat /proc/cpuinfo > processor : 0 > vendor_id : GenuineIntel > cpu family : 15 > model : 2 > model name : Intel(R) Pentium(R) 4 CPU 2.66GHz > stepping : 9 > cpu MHz : 2667.073 > cache size : 512 KB > fdiv_bug : no > hlt_bug : no > f00f_bug : no > coma_bug : no > fpu : yes > fpu_exception : yes > cpuid level : 2 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid > xtpr > bogomips : 5342.33 >=20 > bash-3.00# > bash-3.00# free > total used free shared buffers cached > Mem: 903060 418412 484648 0 43336 224788 > -/+ buffers/cache: 150288 752772 > Swap: 0 0 0 > bash-3.00# >=20 >=20 > Do you want to see my .config? I don't really need the SMP or > PREEMPT, I suppose. >=20 > -Bob >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op?k > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu jl...@mi... |
|
From: James R. L. <jl...@mi...> - 2005-12-08 04:48:34
|
Could you send me the kernel debug from running the labelspace command that hangs? Do you see this problem with 'mpls ilm show'? On Wed, Dec 07, 2005 at 10:25:09PM -0600, James R. Leu wrote: > I have a theory about it having something to do with SMP. Can your > try compiling as a UP kernel and see if the problem persists? >=20 > On Wed, Dec 07, 2005 at 03:10:19PM -0500, Bob Beers wrote: > > > Can you post the full set of mpls commands you issued? I cannot > > > reproduce this on my machines. > >=20 > > Certainly, > > after reboot, and kde startup, let's just start with uml1: > >=20 > > bash-3.00# cat /sys/mpls/version > > 1.950 > > bash-3.00# mpls nhlfe add key 0 > > NHLFE entry key 0x00000002 mtu 0 propagate_ttl > > (0 bytes, 0 pkts) > > bash-3.00# mpls nhlfe change key 0x2 instructions push gen 10000 > > nexthop eth0 ipv4 172.16.87.21 > > bash-3.00# /usr/sbin/ip route add 172.16.87.21/32 via 172.16.87.21 mpls= 0x2 > > bash-3.00# /usr/sbin/ip route show > > 172.16.87.21 via 172.16.87.21 dev eth0 mpls 0x2 > > 172.16.87.0/24 dev eth0 proto kernel scope link src 172.16.87.11 > > 192.168.10.0/24 dev eth1 proto kernel scope link src 192.168.10.11 > > 127.0.0.0/8 dev lo scope link > > default via 192.168.10.7 dev eth1 > > bash-3.00# mpls nhlfe show > >=20 > > and it never returns, the console is not locked-up, just never returns = without > > a ^C. > >=20 > > here is some other info: > >=20 > > bash-3.00# dmesg | grep MPLS > > MPLS: version 1.950 > > MPLS: protocol driver interface - <jl...@mi...> > > MPLS DEBUG net/mpls/mpls_sysfs.c:136:mpls_sysfs_init: enter > > MPLS DEBUG net/mpls/mpls_sysfs.c:145:mpls_sysfs_init: exit > > Registered MPLS tunnel mpls0 > > MPLS: IPv4 over MPLS support > > MPLS DEBUG net/mpls/mpls_ilm.c:126:mpls_ilm_dst_alloc: enter > > MPLS DEBUG net/mpls/mpls_ilm.c:156:mpls_ilm_dst_alloc: exit > > MPLS: IPv6 over MPLS support > > MPLS DEBUG net/mpls/mpls_ilm.c:126:mpls_ilm_dst_alloc: enter > > MPLS DEBUG net/mpls/mpls_ilm.c:109:ilm_dst_gc: enter > > MPLS DEBUG net/mpls/mpls_ilm.c:110:ilm_dst_gc: exit > > MPLS DEBUG net/mpls/mpls_ilm.c:156:mpls_ilm_dst_alloc: exit > > MPLS: Ethernet over MPLS support > > MPLS DEBUG net/mpls/mpls_netlink.c:302:genl_mpls_nhlfe_new: enter > > MPLS DEBUG net/mpls/mpls_nhlfe.c:394:mpls_add_out_label: enter > > MPLS DEBUG net/mpls/mpls_nhlfe.c:130:nhlfe_dst_alloc: enter > > MPLS DEBUG net/mpls/mpls_nhlfe.c:151:nhlfe_dst_alloc: exit > > MPLS DEBUG net/mpls/mpls_netlink.c:279:mpls_nhlfe_event: enter > > MPLS DEBUG net/mpls/mpls_netlink.c:249:mpls_fill_nhlfe: enter > > MPLS DEBUG net/mpls/mpls_netlink.c:49:mpls_copy_instr: enter > > MPLS DEBUG net/mpls/mpls_netlink.c:63:mpls_copy_instr: exit > > MPLS DEBUG net/mpls/mpls_netlink.c:266:mpls_fill_nhlfe: exit > > MPLS DEBUG net/mpls/mpls_netlink.c:293:mpls_nhlfe_event: exit > > MPLS DEBUG net/mpls/mpls_nhlfe.c:451:mpls_add_out_label: exit > > MPLS DEBUG net/mpls/mpls_netlink.c:339:genl_mpls_nhlfe_new: Exit: 0 > > MPLS DEBUG net/mpls/mpls_netlink.c:302:genl_mpls_nhlfe_new: enter > > MPLS DEBUG net/mpls/mpls_opcode.c:345:mpls_build_opcode_push: enter > > MPLS DEBUG net/mpls/mpls_opcode.c:356:mpls_build_opcode_push: exit > > MPLS DEBUG net/mpls/mpls_opcode.c:1035:mpls_build_opcode_set: enter > > MPLS DEBUG net/mpls/mpls_dst.c:169:mpls_dst_alloc: enter > > MPLS DEBUG net/mpls/mpls_dst.c:204:mpls_dst_alloc: exit(e8668e80) > > MPLS DEBUG net/mpls/mpls_opcode.c:1100:mpls_build_opcode_set: exit > > MPLS DEBUG net/mpls/mpls_netlink.c:339:genl_mpls_nhlfe_new: Exit: 0 > > MPLS DEBUG net/mpls/mpls_netlink.c:398:genl_mpls_nhlfe_dump: Enter: ent= ry 0 > > MPLS DEBUG net/mpls/mpls_netlink.c:402:genl_mpls_nhlfe_dump: Dump: entr= y 0 > > MPLS DEBUG net/mpls/mpls_netlink.c:249:mpls_fill_nhlfe: enter > > MPLS DEBUG net/mpls/mpls_netlink.c:49:mpls_copy_instr: enter > > MPLS DEBUG net/mpls/mpls_opcode.c:364:mpls_unbuild_opcode_push: enter > > MPLS DEBUG net/mpls/mpls_opcode.c:369:mpls_unbuild_opcode_push: exit > > MPLS DEBUG net/mpls/mpls_opcode.c:1109:mpls_unbuild_opcode_set: enter > > MPLS DEBUG net/mpls/mpls_opcode.c:1115:mpls_unbuild_opcode_set: exit > > MPLS DEBUG net/mpls/mpls_netlink.c:63:mpls_copy_instr: exit > > MPLS DEBUG net/mpls/mpls_netlink.c:266:mpls_fill_nhlfe: exit > > MPLS DEBUG net/mpls/mpls_netlink.c:419:genl_mpls_nhlfe_dump: Exit: entr= y 1 > > MPLS DEBUG net/mpls/mpls_netlink.c:398:genl_mpls_nhlfe_dump: Enter: ent= ry 1 > > MPLS DEBUG net/mpls/mpls_netlink.c:402:genl_mpls_nhlfe_dump: Dump: entr= y 0 > > MPLS DEBUG net/mpls/mpls_netlink.c:419:genl_mpls_nhlfe_dump: Exit: entr= y 1 > > bash-3.00# > >=20 > > bash-3.00# uname -a > > Linux alakazam 2.6.15-rc1-mpls #11 SMP PREEMPT Tue Dec 6 15:29:07 EST > > 2005 i686 unknown unknown GNU/Linux > > bash-3.00# > > bash-3.00# cat /proc/cpuinfo > > processor : 0 > > vendor_id : GenuineIntel > > cpu family : 15 > > model : 2 > > model name : Intel(R) Pentium(R) 4 CPU 2.66GHz > > stepping : 9 > > cpu MHz : 2667.073 > > cache size : 512 KB > > fdiv_bug : no > > hlt_bug : no > > f00f_bug : no > > coma_bug : no > > fpu : yes > > fpu_exception : yes > > cpuid level : 2 > > wp : yes > > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > > mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid > > xtpr > > bogomips : 5342.33 > >=20 > > bash-3.00# > > bash-3.00# free > > total used free shared buffers cach= ed > > Mem: 903060 418412 484648 0 43336 2247= 88 > > -/+ buffers/cache: 150288 752772 > > Swap: 0 0 0 > > bash-3.00# > >=20 > >=20 > > Do you want to see my .config? I don't really need the SMP or > > PREEMPT, I suppose. > >=20 > > -Bob > >=20 > >=20 > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op?k > > _______________________________________________ > > mpls-linux-general mailing list > > mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general >=20 > --=20 > James R. Leu > jl...@mi... --=20 James R. Leu jl...@mi... |
|
From: Bob B. <bob...@gm...> - 2005-12-08 14:35:31
|
On 12/7/05, James R. Leu <jl...@mi...> wrote:
> Could you send me the kernel debug from running the labelspace command
> that hangs?
How about also an strace:
root@beedril:~# strace mpls labelspace add dev eth0 labelspace 0
execve("/usr/sbin/mpls", ["mpls", "labelspace", "add", "dev", "eth0",
"labelspace", "0"], [/* 30 vars */]) =3D 0
uname({sys=3D"Linux", node=3D"beedril", ...}) =3D 0
brk(0) =3D 0x8053000
access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or dire=
ctory)
open("/etc/ld.so.cache", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D111746, ...}) =3D 0
mmap2(NULL, 111746, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7fc7000
close(3) =3D 0
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\0P3\0\000"..., 512) =
=3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D176352, ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) =3D 0xb7fc6000
mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) =3D 0xb7fa3000
mmap2(0xb7fc4000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) =3D 0xb7fc4000
close(3) =3D 0
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\200$\0"..., 512) =
=3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D73805, ...}) =3D 0
mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) =3D 0xb7f90000
mprotect(0xb7f9e000, 18632, PROT_NONE) =3D 0
mmap2(0xb7f9f000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) =3D 0xb7f9f000
mmap2(0xb7fa1000, 6344, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7fa1000
close(3) =3D 0
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\300P\1"..., 512) =
=3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1366940, ...}) =3D 0
mmap2(NULL, 1162428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) =3D 0xb7e74000
mprotect(0xb7f89000, 27836, PROT_NONE) =3D 0
mmap2(0xb7f8a000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) =3D 0xb7f8a000
mmap2(0xb7f8e000, 7356, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7f8e000
close(3) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) =3D 0xb7e73000
mprotect(0xb7f8a000, 4096, PROT_READ) =3D 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e736c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
munmap(0xb7fc7000, 111746) =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=3D3110, groups=3D00000000}, [12=
]) =3D 0
time(NULL) =3D 1134051713
sendto(3, "\24\0\0\0\22\0\1\3\202A\230C\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=3D00000000},
msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0\202A\230C&\f\0\0\0\0\4\3\1\0\0\0I\0"...=
,
16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 912
brk(0) =3D 0x8053000
brk(0x8074000) =3D 0x8074000
recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
groups=3D00000000},
msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\202A\230C&\f\0\0\0\0\0\0\1\0\0\0I\0\0"...=
,
16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
close(3) =3D 0
socket(PF_NETLINK, SOCK_RAW, 16) =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=3D0000ffff}, 12) =3D 0
getsockname(3, {sa_family=3DAF_NETLINK, pid=3D3110, groups=3D0000ffff}, [12=
]) =3D 0
time(NULL) =3D 1134051713
sendmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
groups=3D00000000}, msg_iov(1)=3D[{"
\0\0\0\36\0\5\4\202A\230C\0\0\0\0\n\0\0\0\f\0\4\0\4\0"..., 32}],
msg_controllen=3D0, msg_flags=3D0}, 0) =3D 32
recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
groups=3D00000080}, msg_iov(1)=3D[{"
\0\0\0\36\0\0\0\0\0\0\0\0\0\0\0\n\1\0\0\f\0\4\0\4\0\0"..., 16384}],
msg_controllen=3D0, msg_flags=3D0}, 0) =3D 32
and the debug messages:
Dec 8 09:21:53 beedril kernel: MPLS DEBUG
net/mpls/mpls_netlink.c:650:genl_mpls_labelspace_set: enter
Dec 8 09:21:53 beedril kernel: MPLS DEBUG
net/mpls/mpls_if.c:175:__mpls_set_labelspace: enter
Dec 8 09:21:53 beedril kernel: MPLS DEBUG
net/mpls/mpls_if.c:189:__mpls_set_labelspace: Set labelspace for eth0
to 0
Dec 8 09:21:53 beedril kernel: MPLS DEBUG
net/mpls/mpls_netlink.c:628:mpls_labelspace_event: enter
Dec 8 09:21:53 beedril kernel: MPLS DEBUG
net/mpls/mpls_netlink.c:615:mpls_fill_labelspace: Exit: length
Dec 8 09:21:53 beedril kernel: MPLS DEBUG
net/mpls/mpls_netlink.c:642:mpls_labelspace_event: exit
Dec 8 09:21:53 beedril kernel: MPLS DEBUG
net/mpls/mpls_if.c:203:__mpls_set_labelspace: exit
Dec 8 09:21:53 beedril kernel: MPLS DEBUG
net/mpls/mpls_netlink.c:654:genl_mpls_labelspace_set: Exit: 0
>
> Do you see this problem with 'mpls ilm show'?
>
yes: seems only 'mpls nhlfe [add|change]' return to command line prompt.
root@beedril:~# strace mpls ilm show
execve("/usr/sbin/mpls", ["mpls", "ilm", "show"], [/* 30 vars */]) =3D 0
uname({sys=3D"Linux", node=3D"beedril", ...}) =3D 0
brk(0) =3D 0x8053000
access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or dire=
ctory)
open("/etc/ld.so.cache", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D111746, ...}) =3D 0
mmap2(NULL, 111746, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7ee4000
close(3) =3D 0
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\0P3\0\000"..., 512) =
=3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D176352, ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) =3D 0xb7ee3000
mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) =3D 0xb7ec0000
mmap2(0xb7ee1000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) =3D 0xb7ee1000
close(3) =3D 0
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\200$\0"..., 512) =
=3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D73805, ...}) =3D 0
mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) =3D 0xb7ead000
mprotect(0xb7ebb000, 18632, PROT_NONE) =3D 0
mmap2(0xb7ebc000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) =3D 0xb7ebc000
mmap2(0xb7ebe000, 6344, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ebe000
close(3) =3D 0
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\300P\1"..., 512) =
=3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1366940, ...}) =3D 0
mmap2(NULL, 1162428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) =3D 0xb7d91000
mprotect(0xb7ea6000, 27836, PROT_NONE) =3D 0
mmap2(0xb7ea7000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) =3D 0xb7ea7000
mmap2(0xb7eab000, 7356, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7eab000
close(3) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) =3D 0xb7d90000
mprotect(0xb7ea7000, 4096, PROT_READ) =3D 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d906c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
munmap(0xb7ee4000, 111746) =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=3D3147, groups=3D00000000}, [12=
]) =3D 0
time(NULL) =3D 1134052385
sendto(3, "\24\0\0\0\22\0\1\3\"D\230C\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=3D00000000},
msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0\"D\230CK\f\0\0\0\0\4\3\1\0\0\0I\0\0"...=
,
16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 912
brk(0) =3D 0x8053000
brk(0x8074000) =3D 0x8074000
recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
groups=3D00000000},
msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\"D\230CK\f\0\0\0\0\0\0\1\0\0\0I\0\0\0"...=
,
16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
close(3) =3D 0
socket(PF_NETLINK, SOCK_RAW, 16) =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=3D0000ffff}, 12) =3D 0
getsockname(3, {sa_family=3DAF_NETLINK, pid=3D3147, groups=3D0000ffff}, [12=
]) =3D 0
time(NULL) =3D 1134052385
sendto(3, "\24\0\0\0\36\0\1\3\0\0\0\0\0\0\0\0\3\0\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=3D00000000},
msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\0\0\0\0K\f\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
recvmsg(3,
debug log:
Dec 8 09:33:05 beedril kernel: MPLS DEBUG
net/mpls/mpls_netlink.c:217:genl_mpls_ilm_dump: Enter: entry 0
Dec 8 09:33:05 beedril kernel: MPLS DEBUG
net/mpls/mpls_netlink.c:235:genl_mpls_ilm_dump: Exit: entry 0
--
-Bob
|
|
From: James R. L. <jl...@mi...> - 2005-12-09 07:34:29
|
OK. I was able to duplicate your issue and I think I submitted a fix
for the add/delete/change/set commands not returnning. I still need
to figure out the show commands. Basically my tree was out of sync with the
repository, so you didn't have the same code as me.
Update you iproute-mpls tree and you will get my fix. One thing to note
is I changed the syntax of the labelspace command:
mpls labelspace set dev eth0 labelspace 0
^
|
no add or delete
To delete, set the
labelspace to -1
On Thu, Dec 08, 2005 at 09:35:27AM -0500, Bob Beers wrote:
> On 12/7/05, James R. Leu <jl...@mi...> wrote:
> > Could you send me the kernel debug from running the labelspace command
> > that hangs?
>=20
> How about also an strace:
>=20
> root@beedril:~# strace mpls labelspace add dev eth0 labelspace 0
> execve("/usr/sbin/mpls", ["mpls", "labelspace", "add", "dev", "eth0",
> "labelspace", "0"], [/* 30 vars */]) =3D 0
> uname({sys=3D"Linux", node=3D"beedril", ...}) =3D 0
> brk(0) =3D 0x8053000
> access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or di=
rectory)
> open("/etc/ld.so.cache", O_RDONLY) =3D 3
> fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D111746, ...}) =3D 0
> mmap2(NULL, 111746, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7fc7000
> close(3) =3D 0
> 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\0P3\0\000"..., 512=
) =3D 512
> fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D176352, ...}) =3D 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) =3D 0xb7fc6000
> mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) =3D 0xb7fa3000
> mmap2(0xb7fc4000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) =3D 0xb7fc4000
> close(3) =3D 0
> 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\200$\0"..., 512)=
=3D 512
> fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D73805, ...}) =3D 0
> mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) =3D 0xb7f90000
> mprotect(0xb7f9e000, 18632, PROT_NONE) =3D 0
> mmap2(0xb7f9f000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) =3D 0xb7f9f000
> mmap2(0xb7fa1000, 6344, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7fa1000
> close(3) =3D 0
> 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\300P\1"..., 512)=
=3D 512
> fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1366940, ...}) =3D 0
> mmap2(NULL, 1162428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
> 3, 0) =3D 0xb7e74000
> mprotect(0xb7f89000, 27836, PROT_NONE) =3D 0
> mmap2(0xb7f8a000, 16384, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) =3D 0xb7f8a000
> mmap2(0xb7f8e000, 7356, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7f8e000
> close(3) =3D 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) =3D 0xb7e73000
> mprotect(0xb7f8a000, 4096, PROT_READ) =3D 0
> set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e736c0,
> limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
> limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
> munmap(0xb7fc7000, 111746) =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=3D3110, groups=3D00000000}, [=
12]) =3D 0
> time(NULL) =3D 1134051713
> sendto(3, "\24\0\0\0\22\0\1\3\202A\230C\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=3D00000000},
> msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0\202A\230C&\f\0\0\0\0\4\3\1\0\0\0I\0".=
..,
> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 912
> brk(0) =3D 0x8053000
> brk(0x8074000) =3D 0x8074000
> recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> groups=3D00000000},
> msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\202A\230C&\f\0\0\0\0\0\0\1\0\0\0I\0\0".=
..,
> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
> close(3) =3D 0
> socket(PF_NETLINK, SOCK_RAW, 16) =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=3D0000ffff}, 12) =3D 0
> getsockname(3, {sa_family=3DAF_NETLINK, pid=3D3110, groups=3D0000ffff}, [=
12]) =3D 0
> time(NULL) =3D 1134051713
> sendmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> groups=3D00000000}, msg_iov(1)=3D[{"
> \0\0\0\36\0\5\4\202A\230C\0\0\0\0\n\0\0\0\f\0\4\0\4\0"..., 32}],
> msg_controllen=3D0, msg_flags=3D0}, 0) =3D 32
> recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> groups=3D00000080}, msg_iov(1)=3D[{"
> \0\0\0\36\0\0\0\0\0\0\0\0\0\0\0\n\1\0\0\f\0\4\0\4\0\0"..., 16384}],
> msg_controllen=3D0, msg_flags=3D0}, 0) =3D 32
>=20
>=20
> and the debug messages:
>=20
>=20
> Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> net/mpls/mpls_netlink.c:650:genl_mpls_labelspace_set: enter
> Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> net/mpls/mpls_if.c:175:__mpls_set_labelspace: enter
> Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> net/mpls/mpls_if.c:189:__mpls_set_labelspace: Set labelspace for eth0
> to 0
> Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> net/mpls/mpls_netlink.c:628:mpls_labelspace_event: enter
> Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> net/mpls/mpls_netlink.c:615:mpls_fill_labelspace: Exit: length
> Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> net/mpls/mpls_netlink.c:642:mpls_labelspace_event: exit
> Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> net/mpls/mpls_if.c:203:__mpls_set_labelspace: exit
> Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> net/mpls/mpls_netlink.c:654:genl_mpls_labelspace_set: Exit: 0
>=20
>=20
>=20
>=20
>=20
> >
> > Do you see this problem with 'mpls ilm show'?
> >
>=20
> yes: seems only 'mpls nhlfe [add|change]' return to command line prompt.
>=20
> root@beedril:~# strace mpls ilm show
> execve("/usr/sbin/mpls", ["mpls", "ilm", "show"], [/* 30 vars */]) =3D 0
> uname({sys=3D"Linux", node=3D"beedril", ...}) =3D 0
> brk(0) =3D 0x8053000
> access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or di=
rectory)
> open("/etc/ld.so.cache", O_RDONLY) =3D 3
> fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D111746, ...}) =3D 0
> mmap2(NULL, 111746, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7ee4000
> close(3) =3D 0
> 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\0P3\0\000"..., 512=
) =3D 512
> fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D176352, ...}) =3D 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) =3D 0xb7ee3000
> mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) =3D 0xb7ec0000
> mmap2(0xb7ee1000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) =3D 0xb7ee1000
> close(3) =3D 0
> 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\200$\0"..., 512)=
=3D 512
> fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D73805, ...}) =3D 0
> mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) =3D 0xb7ead000
> mprotect(0xb7ebb000, 18632, PROT_NONE) =3D 0
> mmap2(0xb7ebc000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) =3D 0xb7ebc000
> mmap2(0xb7ebe000, 6344, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ebe000
> close(3) =3D 0
> 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\300P\1"..., 512)=
=3D 512
> fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1366940, ...}) =3D 0
> mmap2(NULL, 1162428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
> 3, 0) =3D 0xb7d91000
> mprotect(0xb7ea6000, 27836, PROT_NONE) =3D 0
> mmap2(0xb7ea7000, 16384, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) =3D 0xb7ea7000
> mmap2(0xb7eab000, 7356, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7eab000
> close(3) =3D 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) =3D 0xb7d90000
> mprotect(0xb7ea7000, 4096, PROT_READ) =3D 0
> set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d906c0,
> limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
> limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
> munmap(0xb7ee4000, 111746) =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=3D3147, groups=3D00000000}, [=
12]) =3D 0
> time(NULL) =3D 1134052385
> sendto(3, "\24\0\0\0\22\0\1\3\"D\230C\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=3D00000000},
> msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0\"D\230CK\f\0\0\0\0\4\3\1\0\0\0I\0\0".=
..,
> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 912
> brk(0) =3D 0x8053000
> brk(0x8074000) =3D 0x8074000
> recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> groups=3D00000000},
> msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\"D\230CK\f\0\0\0\0\0\0\1\0\0\0I\0\0\0".=
..,
> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
> close(3) =3D 0
> socket(PF_NETLINK, SOCK_RAW, 16) =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=3D0000ffff}, 12) =3D 0
> getsockname(3, {sa_family=3DAF_NETLINK, pid=3D3147, groups=3D0000ffff}, [=
12]) =3D 0
> time(NULL) =3D 1134052385
> sendto(3, "\24\0\0\0\36\0\1\3\0\0\0\0\0\0\0\0\3\0\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=3D00000000},
> msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\0\0\0\0K\f\0\0\0\0\0\0\0\0\0\0\0\0\0"..=
.,
> 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
> recvmsg(3,
>=20
>=20
> debug log:
>=20
> Dec 8 09:33:05 beedril kernel: MPLS DEBUG
> net/mpls/mpls_netlink.c:217:genl_mpls_ilm_dump: Enter: entry 0
> Dec 8 09:33:05 beedril kernel: MPLS DEBUG
> net/mpls/mpls_netlink.c:235:genl_mpls_ilm_dump: Exit: entry 0
>=20
>=20
> --
> -Bob
--=20
James R. Leu
jl...@mi...
|
|
From: James R. L. <jl...@mi...> - 2005-12-13 02:19:22
|
I finally fixed the 'show' commands. Update your iproute2-mpls tree
and you will have the fix. I did update the usage info to show how to
delete a labelspace, I didn't use your method, but thanks for pointing
out that I needed to include that info.
On Fri, Dec 09, 2005 at 01:34:19AM -0600, James R. Leu wrote:
> OK. I was able to duplicate your issue and I think I submitted a fix
> for the add/delete/change/set commands not returnning. I still need
> to figure out the show commands. Basically my tree was out of sync with =
the
> repository, so you didn't have the same code as me.
>=20
> Update you iproute-mpls tree and you will get my fix. One thing to note
> is I changed the syntax of the labelspace command:
>=20
> mpls labelspace set dev eth0 labelspace 0
> ^
> |
> no add or delete
> To delete, set the
> labelspace to -1
>=20
> On Thu, Dec 08, 2005 at 09:35:27AM -0500, Bob Beers wrote:
> > On 12/7/05, James R. Leu <jl...@mi...> wrote:
> > > Could you send me the kernel debug from running the labelspace command
> > > that hangs?
> >=20
> > How about also an strace:
> >=20
> > root@beedril:~# strace mpls labelspace add dev eth0 labelspace 0
> > execve("/usr/sbin/mpls", ["mpls", "labelspace", "add", "dev", "eth0",
> > "labelspace", "0"], [/* 30 vars */]) =3D 0
> > uname({sys=3D"Linux", node=3D"beedril", ...}) =3D 0
> > brk(0) =3D 0x8053000
> > access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or =
directory)
> > open("/etc/ld.so.cache", O_RDONLY) =3D 3
> > fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D111746, ...}) =3D 0
> > mmap2(NULL, 111746, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7fc7000
> > close(3) =3D 0
> > 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\0P3\0\000"..., 5=
12) =3D 512
> > fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D176352, ...}) =3D 0
> > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> > 0) =3D 0xb7fc6000
> > mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> > 0) =3D 0xb7fa3000
> > mmap2(0xb7fc4000, 8192, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) =3D 0xb7fc4000
> > close(3) =3D 0
> > 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\200$\0"..., 51=
2) =3D 512
> > fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D73805, ...}) =3D 0
> > mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> > 0) =3D 0xb7f90000
> > mprotect(0xb7f9e000, 18632, PROT_NONE) =3D 0
> > mmap2(0xb7f9f000, 8192, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) =3D 0xb7f9f000
> > mmap2(0xb7fa1000, 6344, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7fa1000
> > close(3) =3D 0
> > 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\300P\1"..., 51=
2) =3D 512
> > fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1366940, ...}) =3D 0
> > mmap2(NULL, 1162428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
> > 3, 0) =3D 0xb7e74000
> > mprotect(0xb7f89000, 27836, PROT_NONE) =3D 0
> > mmap2(0xb7f8a000, 16384, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) =3D 0xb7f8a000
> > mmap2(0xb7f8e000, 7356, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7f8e000
> > close(3) =3D 0
> > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> > 0) =3D 0xb7e73000
> > mprotect(0xb7f8a000, 4096, PROT_READ) =3D 0
> > set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e736c0,
> > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
> > limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
> > munmap(0xb7fc7000, 111746) =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=3D3110, groups=3D00000000},=
[12]) =3D 0
> > time(NULL) =3D 1134051713
> > sendto(3, "\24\0\0\0\22\0\1\3\202A\230C\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=3D00000000},
> > msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0\202A\230C&\f\0\0\0\0\4\3\1\0\0\0I\0=
"...,
> > 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 912
> > brk(0) =3D 0x8053000
> > brk(0x8074000) =3D 0x8074000
> > recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> > groups=3D00000000},
> > msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\202A\230C&\f\0\0\0\0\0\0\1\0\0\0I\0\0=
"...,
> > 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
> > close(3) =3D 0
> > socket(PF_NETLINK, SOCK_RAW, 16) =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=3D0000ffff}, 12) =3D 0
> > getsockname(3, {sa_family=3DAF_NETLINK, pid=3D3110, groups=3D0000ffff},=
[12]) =3D 0
> > time(NULL) =3D 1134051713
> > sendmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> > groups=3D00000000}, msg_iov(1)=3D[{"
> > \0\0\0\36\0\5\4\202A\230C\0\0\0\0\n\0\0\0\f\0\4\0\4\0"..., 32}],
> > msg_controllen=3D0, msg_flags=3D0}, 0) =3D 32
> > recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> > groups=3D00000080}, msg_iov(1)=3D[{"
> > \0\0\0\36\0\0\0\0\0\0\0\0\0\0\0\n\1\0\0\f\0\4\0\4\0\0"..., 16384}],
> > msg_controllen=3D0, msg_flags=3D0}, 0) =3D 32
> >=20
> >=20
> > and the debug messages:
> >=20
> >=20
> > Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_netlink.c:650:genl_mpls_labelspace_set: enter
> > Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_if.c:175:__mpls_set_labelspace: enter
> > Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_if.c:189:__mpls_set_labelspace: Set labelspace for eth0
> > to 0
> > Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_netlink.c:628:mpls_labelspace_event: enter
> > Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_netlink.c:615:mpls_fill_labelspace: Exit: length
> > Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_netlink.c:642:mpls_labelspace_event: exit
> > Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_if.c:203:__mpls_set_labelspace: exit
> > Dec 8 09:21:53 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_netlink.c:654:genl_mpls_labelspace_set: Exit: 0
> >=20
> >=20
> >=20
> >=20
> >=20
> > >
> > > Do you see this problem with 'mpls ilm show'?
> > >
> >=20
> > yes: seems only 'mpls nhlfe [add|change]' return to command line prompt.
> >=20
> > root@beedril:~# strace mpls ilm show
> > execve("/usr/sbin/mpls", ["mpls", "ilm", "show"], [/* 30 vars */]) =3D 0
> > uname({sys=3D"Linux", node=3D"beedril", ...}) =3D 0
> > brk(0) =3D 0x8053000
> > access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file or =
directory)
> > open("/etc/ld.so.cache", O_RDONLY) =3D 3
> > fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D111746, ...}) =3D 0
> > mmap2(NULL, 111746, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7ee4000
> > close(3) =3D 0
> > 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\0P3\0\000"..., 5=
12) =3D 512
> > fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D176352, ...}) =3D 0
> > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> > 0) =3D 0xb7ee3000
> > mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> > 0) =3D 0xb7ec0000
> > mmap2(0xb7ee1000, 8192, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) =3D 0xb7ee1000
> > close(3) =3D 0
> > 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\200$\0"..., 51=
2) =3D 512
> > fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D73805, ...}) =3D 0
> > mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> > 0) =3D 0xb7ead000
> > mprotect(0xb7ebb000, 18632, PROT_NONE) =3D 0
> > mmap2(0xb7ebc000, 8192, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) =3D 0xb7ebc000
> > mmap2(0xb7ebe000, 6344, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7ebe000
> > close(3) =3D 0
> > 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\300P\1"..., 51=
2) =3D 512
> > fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1366940, ...}) =3D 0
> > mmap2(NULL, 1162428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
> > 3, 0) =3D 0xb7d91000
> > mprotect(0xb7ea6000, 27836, PROT_NONE) =3D 0
> > mmap2(0xb7ea7000, 16384, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) =3D 0xb7ea7000
> > mmap2(0xb7eab000, 7356, PROT_READ|PROT_WRITE,
> > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0xb7eab000
> > close(3) =3D 0
> > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> > 0) =3D 0xb7d90000
> > mprotect(0xb7ea7000, 4096, PROT_READ) =3D 0
> > set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d906c0,
> > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
> > limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
> > munmap(0xb7ee4000, 111746) =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=3D3147, groups=3D00000000},=
[12]) =3D 0
> > time(NULL) =3D 1134052385
> > sendto(3, "\24\0\0\0\22\0\1\3\"D\230C\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=3D00000000},
> > msg_iov(1)=3D[{"\344\0\0\0\20\0\2\0\"D\230CK\f\0\0\0\0\4\3\1\0\0\0I\0\0=
"...,
> > 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 912
> > brk(0) =3D 0x8053000
> > brk(0x8074000) =3D 0x8074000
> > recvmsg(3, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,
> > groups=3D00000000},
> > msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\"D\230CK\f\0\0\0\0\0\0\1\0\0\0I\0\0\0=
"...,
> > 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
> > close(3) =3D 0
> > socket(PF_NETLINK, SOCK_RAW, 16) =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=3D0000ffff}, 12) =3D 0
> > getsockname(3, {sa_family=3DAF_NETLINK, pid=3D3147, groups=3D0000ffff},=
[12]) =3D 0
> > time(NULL) =3D 1134052385
> > sendto(3, "\24\0\0\0\36\0\1\3\0\0\0\0\0\0\0\0\3\0\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=3D00000000},
> > msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0\0\0\0\0K\f\0\0\0\0\0\0\0\0\0\0\0\0\0"=
...,
> > 16384}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20
> > recvmsg(3,
> >=20
> >=20
> > debug log:
> >=20
> > Dec 8 09:33:05 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_netlink.c:217:genl_mpls_ilm_dump: Enter: entry 0
> > Dec 8 09:33:05 beedril kernel: MPLS DEBUG
> > net/mpls/mpls_netlink.c:235:genl_mpls_ilm_dump: Exit: entry 0
> >=20
> >=20
> > --
> > -Bob
>=20
> --=20
> James R. Leu
> jl...@mi...
--=20
James R. Leu
jl...@mi...
|
|
From: Bob B. <bob...@gm...> - 2005-12-09 14:35:52
|
On 12/9/05, James R. Leu <jl...@mi...> wrote: > OK. I was able to duplicate your issue and I think I submitted a fix > for the add/delete/change/set commands not returnning. I still need > to figure out the show commands. Basically my tree was out of sync with = the > repository, so you didn't have the same code as me. > ok > Update you iproute-mpls tree and you will get my fix. One thing to note > is I changed the syntax of the labelspace command: > > mpls labelspace set dev eth0 labelspace 0 > ^ > | > no add or delete > To delete, set the > labelspace to -1 > I'll update and let you know what happens. thanks, -- -Bob |
|
From: Bob B. <bob...@gm...> - 2005-12-09 16:03:42
|
> I'll update and let you know what happens. thanks,
it works for the 'mpls labelspace set ...' now.
Here's a little diff for the mpls usage function:
bbeers@alakazam:~/download/perforce/p4client$ diff -uprN -X dontdiff
iproute2 iproute2-bb/
Binary files iproute2/mpls/mpls and iproute2-bb/mpls/mpls differ
diff -uprN -X dontdiff iproute2/mpls/mpls.c iproute2-bb/mpls/mpls.c
--- iproute2/mpls/mpls.c 2005-12-09 09:45:12.000000000 -0500
+++ iproute2-bb/mpls/mpls.c 2005-12-09 10:55:39.000000000 -0500
@@ -56,7 +56,7 @@ static void usage(void)
fprintf(stderr, "\n");
fprintf(stderr, "Where:\n");
fprintf(stderr, "CMD :=3D add | del | change\n");
- fprintf(stderr, "NUMBER :=3D 0 .. 255\n");
+ fprintf(stderr, "NUMBER :=3D 0 .. 255 ( or -1 for delete, in the
case of 'mpls labelspace set ...')\n");
fprintf(stderr, "TYPE :=3D gen | atm | fr\n");
fprintf(stderr, "VALUE :=3D 16 .. 1048575 | <VPI>/<VCI> | 16 .. 10=
23\n");
fprintf(stderr, "LABEL :=3D TYPE VALUE\n");
(How _does_ one turn off linewrap in gmail?!?)
--
-Bob
|