netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* netfilter: REJECT: separate reusable code
@ 2014-02-05 10:25 Patrick McHardy
  2014-02-05 10:42 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick McHardy @ 2014-02-05 10:25 UTC (permalink / raw)
  To: Eric Leblond; +Cc: pablo, netfilter-devel

Just noticed commit cc70d069 (netfilter: REJECT: separate reusable code).
That doesn't look like a good idea to me at all.

First of all, it introduces static non-inline functions into a header file,
which is obviously wrong. But more importantly, it adds a symbol dependency
of the reject module on IPv6. We've tried hard to get rid of all these in
x_tables, lets please not re-add them in nftables.

I think we should instead use AF-specific modules for things like that.
We share basically no code except the boiler plate. I'd suggest to add
an AF-specific expression type lookup mechanism that takes precedence
over generic types.

Any other opinions? I wouldn't mind taking care of this myself.

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

end of thread, other threads:[~2014-02-05 12:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 10:25 netfilter: REJECT: separate reusable code Patrick McHardy
2014-02-05 10:42 ` Pablo Neira Ayuso
2014-02-05 10:53   ` Patrick McHardy
2014-02-05 11:17     ` Pablo Neira Ayuso
2014-02-05 11:49       ` Arturo Borrero Gonzalez
2014-02-05 11:50         ` Arturo Borrero Gonzalez
2014-02-05 12:04         ` Patrick McHardy
2014-02-05 12:01       ` Patrick McHardy

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).