* Netfilter callbacks and UDP fragmenting
@ 2007-10-01 11:23 Tomas Mandys
2007-10-01 13:19 ` KOVACS Krisztian
0 siblings, 1 reply; 2+ messages in thread
From: Tomas Mandys @ 2007-10-01 11:23 UTC (permalink / raw)
To: netfilter-devel
Hi,
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.
Thanks
Tomas
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Netfilter callbacks and UDP fragmenting
2007-10-01 11:23 Netfilter callbacks and UDP fragmenting Tomas Mandys
@ 2007-10-01 13:19 ` KOVACS Krisztian
0 siblings, 0 replies; 2+ messages in thread
From: KOVACS Krisztian @ 2007-10-01 13:19 UTC (permalink / raw)
To: Tomas Mandys; +Cc: netfilter-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-01 13:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-01 11:23 Netfilter callbacks and UDP fragmenting Tomas Mandys
2007-10-01 13:19 ` KOVACS Krisztian
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).