All of lore.kernel.org
 help / color / mirror / Atom feed
* concatenate udp payloads of multiple packet
@ 2012-04-19 14:32 Arif Hossain
  2012-04-19 17:58 ` Jeff Haran
  2012-04-19 18:11 ` Rick Jones
  0 siblings, 2 replies; 6+ messages in thread
From: Arif Hossain @ 2012-04-19 14:32 UTC (permalink / raw)
  To: netfilter, netfilter-devel

Hi all.

I have a netfilter_queue app which receives packets on a port range
and do modifications on them. Now  i need to introduce to new features
with this basic app.

First the traffic is quiet high. I have seen the --queue-balance
option. If i want to use it how should i approach? i mean should i
manage every queue from separate threads or
separate process to manage individual queues?  I'm not sure how can i
use fork() to manage every queue separately.

Secondly How packets are distributed among different queues? Based on
what property a  packet is distributed? Any relationship i need to
know about
this distribution?

Thirdly I need to concatenate udp payloads of several packet to
improve bandwidth usage. how should i approach this? The confusion is
when i stop finish processing
of one packet i call nfq_set_verdict() in nfq_callback().  My
confusion  is when  a packet popped from the NFQUEUE? when
nfq_set_verdict() returns or when nfq_callback()
returns?

I mean if i push the incoming packets in user managed queues for
concatenation of udp payload(by this i will also drop individual
packets), then return from the nfq_callback().
After processing in user managed queues(concatenation is done) then i
will issue nfq_set_verdict(). Would that work?

Thanks in advance.

--
-aft
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-23 14:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-19 14:32 concatenate udp payloads of multiple packet Arif Hossain
2012-04-19 17:58 ` Jeff Haran
     [not found]   ` <CAGuaRCs6iYTL-Teci4GpOPD8Cm-6CbLUh2gYbDQMteA=nF29ug@mail.gmail.com>
     [not found]     ` <471DE477E2B1F549A58F3A14A27180BE0169BE@HQ-EX01.bytemobile.com>
2012-04-21  9:12       ` Arif Hossain
2012-04-23 14:38   ` Jan Engelhardt
2012-04-19 18:11 ` Rick Jones
2012-04-20 11:43   ` Arif Hossain

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.