netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how netfilter handles fragmented packets
@ 2004-11-21 15:31 cranium2003
  2004-11-21 16:15 ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: cranium2003 @ 2004-11-21 15:31 UTC (permalink / raw)
  To: kernelnewbies; +Cc: linux-kernel, netfilter-devel, netdev

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)?
          Is that function ip_finish_output? if yes
then fragmented packet has not gone through netfilter
hooks specially NF_IP_LOCAL_OUT?
          so does that mean fragmented packets not
travel through netfilter hooks?
regards,
cranium


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how netfilter handles fragmented packets
  2004-11-21 15:31 how netfilter handles fragmented packets cranium2003
@ 2004-11-21 16:15 ` Jan Engelhardt
  2004-11-21 17:37   ` Nish Aravamudan
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2004-11-21 16:15 UTC (permalink / raw)
  To: cranium2003; +Cc: kernelnewbies, linux-kernel, netfilter-devel, netdev

>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()?)



Jan Engelhardt
-- 
Gesellschaft für Wissenschaftliche Datenverarbeitung
Am Fassberg, 37077 Göttingen, www.gwdg.de

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how netfilter handles fragmented packets
  2004-11-21 16:15 ` Jan Engelhardt
@ 2004-11-21 17:37   ` Nish Aravamudan
  2004-11-21 19:42     ` cranium2003
  0 siblings, 1 reply; 6+ messages in thread
From: Nish Aravamudan @ 2004-11-21 17:37 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: cranium2003, kernelnewbies, linux-kernel, netfilter-devel, netdev

On Sun, 21 Nov 2004 17:15:12 +0100 (MET), Jan Engelhardt
<jengelh@linux01.gwdg.de> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how netfilter handles fragmented packets
  2004-11-21 17:37   ` Nish Aravamudan
@ 2004-11-21 19:42     ` cranium2003
  2004-11-22 19:55       ` Nish Aravamudan
  0 siblings, 1 reply; 6+ messages in thread
From: cranium2003 @ 2004-11-21 19:42 UTC (permalink / raw)
  To: Nish Aravamudan; +Cc: kernelnewbies, linux-kernel, netfilter-devel, netdev


--- Nish Aravamudan <nish.aravamudan@gmail.com> wrote:
Hello Nish,

> On Sun, 21 Nov 2004 17:15:12 +0100 (MET), Jan
> Engelhardt
> <jengelh@linux01.gwdg.de> 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()???
regards,
cranium


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how netfilter handles fragmented packets
  2004-11-21 19:42     ` cranium2003
@ 2004-11-22 19:55       ` Nish Aravamudan
  2004-11-23  6:07         ` cranium2003
  0 siblings, 1 reply; 6+ messages in thread
From: Nish Aravamudan @ 2004-11-22 19:55 UTC (permalink / raw)
  To: cranium2003; +Cc: kernelnewbies, linux-kernel, netfilter-devel, netdev

On Sun, 21 Nov 2004 11:42:02 -0800 (PST), cranium2003
<cranium2003@yahoo.com> wrote:
> 
> --- Nish Aravamudan <nish.aravamudan@gmail.com> wrote:
> Hello Nish,
> 
> 
> 
> > On Sun, 21 Nov 2004 17:15:12 +0100 (MET), Jan
> > Engelhardt
> > <jengelh@linux01.gwdg.de> 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how netfilter handles fragmented packets
  2004-11-22 19:55       ` Nish Aravamudan
@ 2004-11-23  6:07         ` cranium2003
  0 siblings, 0 replies; 6+ messages in thread
From: cranium2003 @ 2004-11-23  6:07 UTC (permalink / raw)
  To: Nish Aravamudan; +Cc: kernelnewbies, linux-kernel, netfilter-devel, netdev

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 <nish.aravamudan@gmail.com> wrote:

> On Sun, 21 Nov 2004 11:42:02 -0800 (PST),
> cranium2003
> <cranium2003@yahoo.com> wrote:
> > 
> > --- Nish Aravamudan <nish.aravamudan@gmail.com>
> wrote:
> > Hello Nish,
> > 
> > 
> > 
> > > On Sun, 21 Nov 2004 17:15:12 +0100 (MET), Jan
> > > Engelhardt
> > > <jengelh@linux01.gwdg.de> 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 
 


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-11-23  6:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-21 15:31 how netfilter handles fragmented packets cranium2003
2004-11-21 16:15 ` Jan Engelhardt
2004-11-21 17:37   ` Nish Aravamudan
2004-11-21 19:42     ` cranium2003
2004-11-22 19:55       ` Nish Aravamudan
2004-11-23  6:07         ` cranium2003

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).