Debugging IP packet through Linux stack
I am inserting packets into Linux stack and they are accepted by net_rx function, but are latter dropped. What tools are available in Linux kernel to for debugging this issue.
On Wed, Sep 21, 2011 at 10:26 PM, Abu Rasheda <rcpilot2010@gmail.com> wrote:
I am inserting packets into Linux stack and they are accepted by net_rx function, but are latter dropped. What tools are available in Linux kernel to for debugging this issue.
printk + dump_stack + your brain :). thanks, Daniel.
On Wed, Sep 21, 2011 at 10:26 PM, Abu Rasheda <rcpilot2010@gmail.com> wrote: I am inserting packets into Linux stack and they are accepted by net_rx function, but are latter dropped. What tools are available in Linux kernel to for debugging this issue.
I discovered that /proc/net/snmp files provides stats about packet processing. This show stats for IP, ICMP, UDP and TCP. It is possible to map stats from this file to actual kernel code and pinpoint where error is happening. Thanks Abu Rasheda
On Thu, Sep 22, 2011 at 12:56 AM, Abu Rasheda <rcpilot2010@gmail.com> wrote:
I am inserting packets into Linux stack and they are accepted by net_rx function, but are latter dropped. What tools are available in Linux kernel to for debugging this issue.
If you know the packet processing path, then kprobes/jprobes can help you inspect the kernel data structures. More on kprobes: http://lxr.linux.no/linux+v3.0.4/Documentation/kprobes.txt -Amit
Hi, Please follow the below book, which will help you in understanding packet flow http://www.amazon.com/Architecture-Design-Implementation-Linux-Practitioners... -Jayapal On Thu, Sep 22, 2011 at 2:16 PM, amit mehta <gmate.amit@gmail.com> wrote:
On Thu, Sep 22, 2011 at 12:56 AM, Abu Rasheda <rcpilot2010@gmail.com> wrote:
I am inserting packets into Linux stack and they are accepted by net_rx function, but are latter dropped. What tools are available in Linux kernel to for debugging this issue.
If you know the packet processing path, then kprobes/jprobes can help you inspect the kernel data structures.
More on kprobes: http://lxr.linux.no/linux+v3.0.4/Documentation/kprobes.txt
-Amit
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Thanks & Regards, ఊరడి జయపాల్ రెడ్డి (Uradi Jayapal reddy) 9866560003
participants (4)
-
Abu Rasheda -
amit mehta -
Daniel Baluta -
Jayapal Reddy