All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: Henning Peters <hpeters@math.uni-goettingen.de>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: ip(6)_tables.h: return type difference in ip(6)t_get_target
Date: Fri, 09 Sep 2005 00:54:03 +0200	[thread overview]
Message-ID: <4320C10B.6000306@eurodev.net> (raw)
In-Reply-To: <61424.192.35.17.21.1126184669.squirrel@mail.piranho.net>

Henning Peters wrote:
> This software is being written in c++. I want to avoid using the
> command-line to talk to iptables for efficiency. Including iptables
> headers and linking to libiptables seemed reasonable for me. But compiling
> with g++ (gcc version 3.3.4 (pre 3.3.5 20040809)) and linking to the
> c-libs (extern "C" stuff) gave me a compile error:

Two comments:

a) The internal library used by iptables (libiptc) is undocumented and
its use is discouraged.
b) iptables is entirely written in C, linking libiptc to C++ code isn't
a good a idea.

So, you should call iptables via system(). It isn't great but you'll
have less problems.

--
Pablo

  reply	other threads:[~2005-09-08 22:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-08 13:04 ip(6)_tables.h: return type difference in ip(6)t_get_target Henning Peters
2005-09-08 22:54 ` Pablo Neira [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-09-09  8:15 Henning Peters
2005-09-09  8:49 ` Patrick Schaaf
2005-09-09  9:03   ` Patrick Schaaf
2005-09-09 10:02     ` Henning Peters
2005-09-09 10:17       ` Patrick Schaaf
2005-09-09 10:55         ` Henning Peters

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=4320C10B.6000306@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=hpeters@math.uni-goettingen.de \
    --cc=netfilter-devel@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 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.