All of lore.kernel.org
 help / color / mirror / Atom feed
* How to make netfilter modules communicate?
@ 2012-10-01 18:17 Ed W
  0 siblings, 0 replies; only message in thread
From: Ed W @ 2012-10-01 18:17 UTC (permalink / raw)
  To: netfilter-devel

Hi, I'm plotting a custom accounting module which would give me some per 
device (MAC), per interface and per protocol bandwidth statistics, but I 
would quite like to decompose the module into several re-usable pieces 
and have them communicate.  I hope this isn't too dim a question, but 
how to make the modules communicate...?

For example some of my interfaces are attached to upstream connections 
which calculate bandwidth in a peculiar way (eg think ATM encapsulation, 
but even more wierd...).  I could create a new module which might match 
on interface and create a new per packet bandwidth computation based on 
the parameters for that upstream interface.  How then to make that 
computation available to other modules?

Also I'm trying to fixup the opendpi-netfilter module to work with nDPI 
and I would quite like to use that to classify all traffic such that the 
accounting module can then log per interface, per user and per 
protocol.  Again how to communicate between the accounting module and 
the ndpi module and tag that a certain connection is a particular protocol?

I already use connection marks quite extensively in this setup, so I 
would like to avoid crystalising this stuff into a conmark in some way, 
but is there a better way to say extend conntrack data to include things 
like custom protocol information, or are there other sensible ways to 
communicate between iptables modules?

Thanks for any thoughts

Ed W

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-01 18:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-01 18:17 How to make netfilter modules communicate? Ed W

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.