Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262258AbUKWGOY (ORCPT ); Tue, 23 Nov 2004 01:14:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261460AbUKWGLw (ORCPT ); Tue, 23 Nov 2004 01:11:52 -0500 Received: from web41406.mail.yahoo.com ([66.218.93.72]:35958 "HELO web41406.mail.yahoo.com") by vger.kernel.org with SMTP id S262195AbUKWGHQ (ORCPT ); Tue, 23 Nov 2004 01:07:16 -0500 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=AO9FgRBLxnVdzYpHtHCgRrb+o2Ss9/N50Zg/iBhef6rOqm9bhX/cntDjir+QRHpca4Y78Ltk8rl94yQ4qhQf0VHPqbJNv+od/w5TdKlLicjR0nB61A36+AdXrvHNA3Fb4pUUgw2FrboCaW9Mn4B2SqsgjSh3hwBt8eqwdA3lg7U= ; Message-ID: <20041123060710.35447.qmail@web41406.mail.yahoo.com> Date: Mon, 22 Nov 2004 22:07:10 -0800 (PST) From: cranium2003 Subject: Re: how netfilter handles fragmented packets To: Nish Aravamudan Cc: kernelnewbies@nl.linux.org, linux-kernel@vger.kernel.org, netfilter-devel@lists.netfilter.org, netdev@oss.sgi.com In-Reply-To: <29495f1d04112211554e78da67@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2460 Lines: 93 Hello Nish, Thanks. I got it. dump_stack is implemented in trap.c file in kernel source. what i decide to use dump_stack is to do pinging to myself at one console and same time call dump_stack from user program. Is that right? But where is output displayed? Dose that help me to find out which function is called by output(skb). regards, cranium. --- Nish Aravamudan wrote: > On Sun, 21 Nov 2004 11:42:02 -0800 (PST), > cranium2003 > wrote: > > > > --- Nish Aravamudan > wrote: > > Hello Nish, > > > > > > > > > On Sun, 21 Nov 2004 17:15:12 +0100 (MET), Jan > > > Engelhardt > > > wrote: > > > > >hello, > > > > > In ip_output.c file ip_fragmet > function > > > when > > > > >create a new fragmented packet given to > > > output(skb) > > > > >function. i want to know which function are > > > actually > > > > >called by output(skb)? > > > > > > > > use stack_dump() (or was it dump_stack()?) > > > > > > dump_stack(), if you want to dump the current > > > process' stack context. > > > > > > -Nish > > > > > > > can you please tell me how can i use dump_stack() > > method? so using dump_stack i will come to know > which > > function will be called by output(skb) right? But > > where i get dump_stack()??? > > Last time i used it, I didn't need to do a darn > thing. I believe it's > part of the traps code, so you can just call > dump_stack(). > dump_stack() will throw out the trace of the current > task's stack at > the point when it is called. See what happens when > you place it in > different places. Another option, if you ever have a > hanging sytem is > Alt-SysRq-T (presuming you have the magic option > enabled and you are > able to scrollback still), which pretty much calls > dump_stack() for > all available processes. > > -Nish > > -- > Kernelnewbies: Help each other learn about the Linux > kernel. > Archive: > http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/