netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Hook on non standard protocol families
@ 2014-12-16  8:13 Yaron Galula
  2014-12-16  8:19 ` Florian Westphal
  0 siblings, 1 reply; 2+ messages in thread
From: Yaron Galula @ 2014-12-16  8:13 UTC (permalink / raw)
  To: netfilter-devel

Hello,

I'd like to try and hook some non standard protocol families, such as
PF_CAN for example.

Is that possible?

I have tried using nf_register_hook() with NFPROTO_UNSPEC hoping it
will act as a wildcard, but the module I have built and loaded does
not seem to be in use (it does work when I replace NFPROTO_UNSPEC with
PF_INET).

I would really appreciate your help in making this work.

Thanks!
Yaron

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

* Re: Hook on non standard protocol families
  2014-12-16  8:13 Hook on non standard protocol families Yaron Galula
@ 2014-12-16  8:19 ` Florian Westphal
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Westphal @ 2014-12-16  8:19 UTC (permalink / raw)
  To: Yaron Galula; +Cc: netfilter-devel

Yaron Galula <ygalula@gmail.com> wrote:
> I'd like to try and hook some non standard protocol families, such as
> PF_CAN for example.
>
> Is that possible?

No.

> I have tried using nf_register_hook() with NFPROTO_UNSPEC hoping it
> will act as a wildcard, but the module I have built and loaded does
> not seem to be in use (it does work when I replace NFPROTO_UNSPEC with
> PF_INET).

Sure, because ipv4 core calls that via NF_HOOK() at various places.

> I would really appreciate your help in making this work.

At the very least you need to change the CAN core to call
netfilter hooks at the right places.

Look at ipv4 or ipv6 as a template.

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

end of thread, other threads:[~2014-12-16  8:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16  8:13 Hook on non standard protocol families Yaron Galula
2014-12-16  8:19 ` Florian Westphal

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