* Userspace packet queuing with libipq: ip_conntrack does not defragment?
@ 2007-05-09 15:32 Michael Ransburg
2007-05-09 15:52 ` Michael Ransburg
2007-05-09 16:34 ` Martijn Lievaart
0 siblings, 2 replies; 5+ messages in thread
From: Michael Ransburg @ 2007-05-09 15:32 UTC (permalink / raw)
To: netfilter-devel
Hi all,
I'm using libipq to pass certain packets to my userspace application
on Fedora 6 / Kernel 2.6.21.1 and ipTables 1.3.5.
I do:
modprobe iptable_filter
modprobe ip_queue
modprobe ip_conntrack
iptables -A INPUT -p tcp -j QUEUE
Works fine. However, since ip_conntrack is loaded I would expect that
the packets are defragmented before they are passed to my userspace
appliation (as indicated here for example:
http://lists.netfilter.org/pipermail/netfilter/2002-May/034006.html).
This does not seem the case, i.e., the maximum size of the packets
which I get (through ->data_len) is 1500 bits.
The len parameter of the ipq_read method is well over 1500, as is the
buffer size.
Any suggestions what I'm doing wrong?
Many thanks,
Michael
--
icq: 71772353 | skype: daneel1409 | msn: mike@unfolded.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Userspace packet queuing with libipq: ip_conntrack does not defragment?
2007-05-09 15:32 Userspace packet queuing with libipq: ip_conntrack does not defragment? Michael Ransburg
@ 2007-05-09 15:52 ` Michael Ransburg
2007-05-09 16:34 ` Martijn Lievaart
1 sibling, 0 replies; 5+ messages in thread
From: Michael Ransburg @ 2007-05-09 15:52 UTC (permalink / raw)
To: netfilter-devel
> Any suggestions what I'm doing wrong?
A small update: I found out (through this presentation:
http://ants.iis.sinica.edu.tw/linux_summer_school/Connection%20Tracking.ppt#262,5,Slide
5) that defragmentation is only available in the prerouting and output
chains. I therefore changed my iptables rule to OUTPUT, but I'm
getting the same result, i.e., maximum packet sizes of 1500.
Any hints are appreciated.
Thanks,
Michael
--
icq: 71772353 | skype: daneel1409 | msn: mike@unfolded.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Userspace packet queuing with libipq: ip_conntrack does not defragment?
2007-05-09 15:32 Userspace packet queuing with libipq: ip_conntrack does not defragment? Michael Ransburg
2007-05-09 15:52 ` Michael Ransburg
@ 2007-05-09 16:34 ` Martijn Lievaart
[not found] ` <22b256140705091014i1d3d7578nf8ed6b20cc1aa1fa@mail.gmail.com>
2007-05-12 10:31 ` Jan Engelhardt
1 sibling, 2 replies; 5+ messages in thread
From: Martijn Lievaart @ 2007-05-09 16:34 UTC (permalink / raw)
To: Michael Ransburg; +Cc: netfilter-devel
Michael Ransburg wrote:
> However, since ip_conntrack is loaded I would expect that
> the packets are defragmented before they are passed to my userspace
> appliation (as indicated here for example:
> http://lists.netfilter.org/pipermail/netfilter/2002-May/034006.html).
> This does not seem the case, i.e., the maximum size of the packets
> which I get (through ->data_len) is 1500 bits.
>
> The len parameter of the ipq_read method is well over 1500, as is the
> buffer size.
Do you actually have packets greater than 1500 bytes? That would mean
you send over loopback, tokenring, etc, but NOT ethernet.
Maybe you are confusing datagram and packet fragmentation. Conntrack
only defragments packets, not datagrams.
HTH,
M4
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <22b256140705091014i1d3d7578nf8ed6b20cc1aa1fa@mail.gmail.com>]
* Re: Userspace packet queuing with libipq: ip_conntrack does not defragment?
2007-05-09 16:34 ` Martijn Lievaart
[not found] ` <22b256140705091014i1d3d7578nf8ed6b20cc1aa1fa@mail.gmail.com>
@ 2007-05-12 10:31 ` Jan Engelhardt
1 sibling, 0 replies; 5+ messages in thread
From: Jan Engelhardt @ 2007-05-12 10:31 UTC (permalink / raw)
To: Martijn Lievaart; +Cc: netfilter-devel, Michael Ransburg
On May 9 2007 18:34, Martijn Lievaart wrote:
> Michael Ransburg wrote:
>> However, since ip_conntrack is loaded I would expect that
>> the packets are defragmented before they are passed to my userspace
>> appliation (as indicated here for example:
>> http://lists.netfilter.org/pipermail/netfilter/2002-May/034006.html).
>> This does not seem the case, i.e., the maximum size of the packets
>> which I get (through ->data_len) is 1500 bits.
>>
>> The len parameter of the ipq_read method is well over 1500, as is the
>> buffer size.
>
> Do you actually have packets greater than 1500 bytes? That would mean you send
> over loopback, tokenring, etc, but NOT ethernet.
Gigabit ethernet allows for 9000-byte jumbo frames.
> Maybe you are confusing datagram and packet fragmentation. Conntrack only
> defragments packets, not datagrams.
Jan
--
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-12 10:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-09 15:32 Userspace packet queuing with libipq: ip_conntrack does not defragment? Michael Ransburg
2007-05-09 15:52 ` Michael Ransburg
2007-05-09 16:34 ` Martijn Lievaart
[not found] ` <22b256140705091014i1d3d7578nf8ed6b20cc1aa1fa@mail.gmail.com>
[not found] ` <46420398.7060101@rtij.nl>
[not found] ` <22b256140705091043m3ff01e3djc45390edbf84293c@mail.gmail.com>
2007-05-09 18:12 ` Michael Ransburg
2007-05-12 10:31 ` Jan Engelhardt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.