From: "Kanhu Rauta" <choiskanhu@gmail.com>
To: netfilter-devel@lists.netfilter.org, linux-net@vger.kernel.org,
kernelnewbies@nl.linux.org, linux-kernel@vger.kernel.org
Subject: IP Defragmentation
Date: Thu, 8 Mar 2007 11:45:58 +0530 [thread overview]
Message-ID: <4c348ac20703072215x63a7a315kd018e433c7a197d2@mail.gmail.com> (raw)
Hi list,
I am using kernel 2.6.20.1. I have written a module,which will
register a function at local_in hook, i have found a strange behavior
with the packets getting in my callback function i.e
[let say i am sending 1500 bytes to this machine from the network]
ping -s 1500 <ip>
1>in case of fragmention i am getting only one packet at the
hook,While analyzing the ip header it says this is the assembled
packet(skb->len=1528,offset=0,MF=0).
While dumping the data(for 0 to 1528 print skb->data[i]) it shows that
only 1472 bytes are valid data and rest 28 bytes are something
garbage.
I verified this with ethereal.
2>I have dumped these packets in ip_local_deliver function after
ip_defrag and before NF_HOOK,But the result is same.
Can Anybody let me know why i am not getting the complete data ?
Regards,
kanhu
next reply other threads:[~2007-03-08 6:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-08 6:15 Kanhu Rauta [this message]
2007-03-10 23:43 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4c348ac20703072215x63a7a315kd018e433c7a197d2@mail.gmail.com \
--to=choiskanhu@gmail.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®