All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Schaaf <bof@bof.de>
To: Scott MacKay <scottmackay@yahoo.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: netfilter language
Date: Sun, 20 Apr 2003 21:50:12 +0200	[thread overview]
Message-ID: <20030420195012.GB1003@oknodo.bof.de> (raw)
In-Reply-To: <20030418113906.98028.qmail@web13906.mail.yahoo.com>

>     I was wondering, can C++ be used in developing
> netfilter modules, or is it really limited more to C? 

ANY kernel development is limited to C - Gnu gcc, to be exact.

> Also, are there any references to the order
> in which my work would be called?

See the definition of 'enum nf_ip_hook_priorities' in the file
include/linux/netfilter_ipv4.h. These go into the 'priority' field
of the 'struct nf_hook_ops' (declaration in include/linux/netfilter.h).

You define such a 'struct nf_hook_ops', and pass it to nf_register_hook(),
in your module initialization code.

> Because of it's nature, I would need to be called before any other
> handler module (especially conn track).

Just use a priority numerically lower than -200 (NF_IP_PRI_CONNTRACK).

best regards
  Patrick

      reply	other threads:[~2003-04-20 19:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-14  5:37 (no subject) sanoj mg
2003-04-18  7:24 ` Fabrice MARIE
2003-04-18 11:39   ` netfilter language Scott MacKay
2003-04-20 19:50     ` Patrick Schaaf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030420195012.GB1003@oknodo.bof.de \
    --to=bof@bof.de \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=scottmackay@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.