Re: [mpls-linux-general] Multiple pushes again
Status: Beta
Brought to you by:
jleu
From: Radu D. <dr...@ee...> - 2002-02-27 13:23:17
|
Hi all , I'm back. Before the output result from mplsadm2 -d, I want to emphasize something else: In UML, after: # ./mplsadm2 -v -A -I gen:17:0 -i pop:peek I received: In label input: gen:17:0 In instr input: pop:peek Label type: gen In Label add: Success Instruction: pop Instruction: peek Length: 2 In Instr: No such device or address ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ What is this error and can it be the source of my kernel panic??? Here is the output from mplsadm2 -d while running the following instructions in UML: ./mplsadm2 -v -A -I gen:17:0 -i pop:peek ./mplsadm2 -v -A -I gen:16:0 Feb 27 08:06:28 bruml kernel: mpls_add_in_label: enter Feb 27 08:06:28 bruml kernel: mpls_in_info_hold: enter Feb 27 08:06:28 bruml kernel: mpls_in_info_hold: new count 1 Feb 27 08:06:28 bruml kernel: mpls_in_info_hold: exit Feb 27 08:06:28 bruml kernel: mpls_info_default_in_instruction: enter Feb 27 08:06:28 bruml kernel: mpls_instruction_build: enter Feb 27 08:06:28 bruml kernel: length: 2 Feb 27 08:06:28 bruml kernel: mpls_instruction_build: exit(2) Feb 27 08:06:28 bruml kernel: mpls_instruction_clear: enter Feb 27 08:06:28 bruml kernel: mpls_instruction_clear: exit Feb 27 08:06:28 bruml kernel: mpls_info_default_in_instruction: exit Feb 27 08:06:28 bruml kernel: mpls_add_in_label: exit Feb 27 08:06:28 bruml kernel: mpls_set_in_label_instructions: enter Feb 27 08:06:28 bruml kernel: mpls_in_info_hold: enter Feb 27 08:06:28 bruml kernel: mpls_in_info_hold: new count 2 Feb 27 08:06:28 bruml kernel: mpls_in_info_hold: exit Feb 27 08:06:28 bruml kernel: mpls_instruction_build: enter Feb 27 08:06:28 bruml kernel: length: 2 Feb 27 08:06:28 bruml kernel: mpls_instruction_build: exit(2) Feb 27 08:06:28 bruml kernel: mpls_instruction_clear: enter Feb 27 08:06:28 bruml kernel: mpls_instruction_clear: exit Feb 27 08:06:28 bruml kernel: mpls_in_info_release: enter Feb 27 08:06:28 bruml kernel: mpls_in_info_release: new count 1 Feb 27 08:06:28 bruml kernel: mpls_in_info_release: exit Feb 27 08:06:28 bruml kernel: mpls_set_in_label_instructions: exit Feb 27 08:06:55 bruml kernel: mpls_add_in_label: enter Feb 27 08:06:55 bruml kernel: mpls_in_info_hold: enter Feb 27 08:06:55 bruml kernel: mpls_in_info_hold: new count 1 Feb 27 08:06:55 bruml kernel: mpls_in_info_hold: exit Feb 27 08:06:55 bruml kernel: mpls_info_default_in_instruction: enter Feb 27 08:06:55 bruml kernel: mpls_instruction_build: enter Feb 27 08:06:55 bruml kernel: length: 2 Feb 27 08:06:55 bruml kernel: mpls_instruction_build: exit(2) Feb 27 08:06:55 bruml kernel: mpls_instruction_clear: enter Feb 27 08:06:55 bruml kernel: mpls_instruction_clear: exit Feb 27 08:06:55 bruml kernel: mpls_info_default_in_instruction: exit Feb 27 08:06:55 bruml kernel: mpls_add_in_label: exit On Tue, 26 Feb 2002, James R. Leu wrote: > Hello, > > Turn on MPLS kernel debugging in the UML (mplsadm2 -d), duplicate, then > sent me the output. > > Jim > > > On Mon, Feb 25, 2002 at 12:15:58PM +0000, Radu Dragos wrote: > > Hi all. > > I'm trying to push 2 labels into the MPLS stack. > > > > Begin (Scenario): > > linux-2.4.17 > > mpls-linux-1.128 > > > > ------ _____ > > |Host|---------------------------UML1| > > ------ ----- > > tap0 eth0 > > 192.168.100.1 192.168.100.2 > > > > > > On host: > > #./mplsadm2 -v -A -O gen:16:tap0:ipv4:192.168.100.2 > > #./mplsadm2 -v -O key:0x3 -o > > push:gen:16:push:gen:17:set:tap0:ipv4:192.168.100.2 > > #iptables -A OUTPUT -d 192.168.100.2 -j MPLS --set-key 0x3 > > #./mplsadm -L tap0:0 > > > > #watch cat /proc/net/mpls* > > lo 0 109 > > tap0 0 7 > > 0x00000003 4/336/0 1 PUSH(gen 16) PUSH(gen 17) SET(tap0,192.168.100.2) > > > > ############################################################ > > On UML1: > > ./mplsadm2 -A -I gen:17:0 -i pop:peek > > ./mplsadm2 -A -I gen:16:0 > > ./mplsadm -L eth0:0 > > > > #watch cat /proc/net/mpls* > > 0x40004000 0/0/0 gen 16 0 1 POP PEEK > > 0x40004400 0/0/0 gen 17 0 1 POP PEEK > > lo 0 5 > > tap0 0 1 > > eth0 0 5 > > > > End(Scenario) > > > > On host: > > ping 192.168.100.2 > > PING 192.168.100.2 (192.168.100.2) from 192.168.100.1 : 56(84) bytes of > > data. > > 64 bytes from 192.168.100.2: icmp_seq=0 ttl=255 time=3.916 msec > > The host received only 1 replay. > > > > On UML1: > > Kernel panic. > > > > bt from gdb: > > #0 panic (fmt=0xa0140e2c "Segfault with no mm") at panic.c:52 > > #1 0xa00c67a1 in segv (address=276, ip=2685111923, is_write=0, is_user=0) > > at trap_kern.c:42 > > #2 0xa00c7548 in segv_handler (sig=11, sc=0xa015f798, usermode=0) > > at trap_user.c:370 > > #3 0xa00c76bf in sig_handler (sig=11, sc= > > {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, > > __dsh = 0, edi = 2720948257, esi = 2720948253, ebp = 2685794980, esp = > > 2685794924, ebx = 2693715584, edx = 272, ecx = 2685794652, eax = 38, > > trapno = 14, err = 4, eip = 2685111923, cs = 35, __csh = 0, eflags = > > 66182, esp_at_signal = 2685794924, ss = 43, __ssh = 0, fpstate = 0x0, > > oldmask = 0, cr2 = 276}) at trap_user.c:429 > > #4 <signal handler called> > > #5 0xa00b8e73 in mpls_opcode_push (skb=0xa015fafc, ml=0x110, > > mpr=0xa0973340) > > at mpls_opcode.c:138 > > #6 0xa00b7e3c in mpls_input (skb=0xa08ed680, dev=0xa08f9800, > > pt=0xa016a040, > > label=0xa23c41e0, mpr=0xa0973340, labelspace=0) at mpls_input.c:190 > > #7 0xa00b8584 in mpls_rcv (skb=0xa08ed680, dev=0xa08f9800, pt=0xa016a040) > > at mpls_input.c:515 > > #8 0xa0074f45 in net_rx_action (h=0xa017d350) at dev.c:1530 > > #9 0xa001238a in do_softirq () at softirq.c:90 > > #10 0xa00c3385 in do_IRQ (irq=4, user_mode=0) at irq.c:332 > > #11 0xa00c39af in sigio_handler (sig=29, sc=0xa015fc80, usermode=0) > > at irq_user.c:62 > > ---Type <return> to continue, or q <return> to quit--- > > #12 0xa00c75de in irq_handler (sig=29, sc= > > {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, > > __dsh = 0, edi = 10, esi = 2685796348, ebp = 2685796208, esp = 2685796180, > > ebx = 2685796200, edx = 8192, ecx = 2685796200, eax = 4294967292, trapno = > > 1, err = 0, eip = 2685302417, cs = 35, __csh = 0, eflags = 646, > > esp_at_signal = 2685796180, ss = 43, __ssh = 0, fpstate = 0xa015fcd8, > > oldmask = 0, cr2 = 0}) at trap_user.c:405 > > #13 <signal handler called> > > #14 0xa00e7691 in __libc_nanosleep () > > #15 0xa00c60dd in idle_sleep (secs=10) at time.c:108 > > #16 0xa00c92a0 in do_idle () at process_kern.c:418 > > #17 0xa00c934d in cpu_idle () at process_kern.c:445 > > #18 0xa00036f1 in start_kernel () at init/main.c:623 > > #19 0xa00c7acd in start_kernel_proc (unused=0x0) at um_arch.c:131 > > #20 0xa00c6fea in signal_tramp (arg=0xa00c7a98) at trap_user.c:84 > > > > > > Does anyone has an updated version of README.hierarchy > > or an working example with multiple pushes/pops ?? > > > > Thanks in advance, > > Radu. > > > > > > > > > > > > > > > > _______________________________________________ > > mpls-linux-general mailing list > > mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > -- > James R. Leu > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > |