Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Joel Newkirk <netfilter@newkirk.us>
To: Alexandros Fragkiadakis <A.Fragiadakis@lboro.ac.uk>,
	netfilter@lists.netfilter.org
Subject: Re: About loadable kernel modules
Date: Mon, 7 Oct 2002 21:06:51 -0400	[thread overview]
Message-ID: <200210072106.51708.netfilter@newkirk.us> (raw)
In-Reply-To: <001001c26a3e$1900bab0$c5327d9e@alex>

On Wednesday 02 October 2002 02:04 pm, Alexandros Fragkiadakis wrote:
> Hi all,
>
> Well, i have written a (netfilter) loadable kernel module for filtering
> various packets. I pass these packets from kernel space to user space using
> libipq. I also have a user process thas loads and unloads this loadable
> kernel module using the commands: system("insmod kernel_module.o")
> system("rmmod kernel_module") respectively.
>
>  I'd like to pass parameters to the loadable module, hence having a more
> flexible user process. So, instead of using the command system("insmod
> kernel_module.o"), i'd like to use: system("insmod kernel_module.o <param1>
> <param2>...<param n>") , hence passing command line parameters to my
> loadable module.

Probably execl(*command,*arg1,*arg2,*arg3...,null) will do what you want.

j



      parent reply	other threads:[~2002-10-08  1:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-02 18:04 About loadable kernel modules Alexandros Fragkiadakis
2002-10-07 16:17 ` Roberto Nibali
2002-10-08  1:06 ` Joel Newkirk [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=200210072106.51708.netfilter@newkirk.us \
    --to=netfilter@newkirk.us \
    --cc=A.Fragiadakis@lboro.ac.uk \
    --cc=netfilter@lists.netfilter.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox