From: KOVACS Krisztian <hidden@sch.bme.hu>
To: Tomas Mandys <tomas.mandys@2p.cz>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Netfilter callbacks and UDP fragmenting
Date: Mon, 1 Oct 2007 15:19:23 +0200 [thread overview]
Message-ID: <20071001131921.GA16274@sch.bme.hu> (raw)
In-Reply-To: <004901c8041d$851a86d0$620aa8c0@nyala>
Hi,
On h, okt 01, 2007 at 01:23:40 +0200, Tomas Mandys wrote:
> are UDP packets defragmented before are passed to netfilter callback
> functions (e.g. PREROUTING) or developer has to create buffer and
> defragment by himself, to release memory when a fragment is missing,
> etc. - is there a working implementation/example? How about locally
> generated packets in OUTPUT callback?
>
> I've looked e.g. in nf_conntrack_sip.c and I can't see any extra
> defragmentation code even SIP message can be fragmented, especially SDP
> content.
Netfilter IPv4 connection tracking code defragments all IPv4 datagrams
before processing them. So if you have connection tracking loaded you
won't see fragments in your hook functions. If there's a chance that your
code will be used without connection tracking then you'll have to handle
fragments by yourself.
--
KOVACS Krisztian
prev parent reply other threads:[~2007-10-01 13:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-01 11:23 Netfilter callbacks and UDP fragmenting Tomas Mandys
2007-10-01 13:19 ` KOVACS Krisztian [this message]
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=20071001131921.GA16274@sch.bme.hu \
--to=hidden@sch.bme.hu \
--cc=netfilter-devel@vger.kernel.org \
--cc=tomas.mandys@2p.cz \
/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;
as well as URLs for NNTP newsgroup(s).