All of lore.kernel.org
 help / color / mirror / Atom feed
From: Graham Keeling <graham@equiinet.com>
To: netfilter-devel@lists.netfilter.org
Subject: iptables 1.3.1 MARK target
Date: Thu, 17 Mar 2005 16:52:48 +0000	[thread overview]
Message-ID: <20050317165248.GB28102@ltsp> (raw)

Hi,
I'm posting this in case you guys aren't aware of it...

I'm using kernel 2.4.26.
I recently upgraded iptables from 1.2.8 to 1.3.1.
I found that the MARK target didn't work anymore.
I couldn't do --set-mark, --or-mark or --and-mark.
The error messages were;
--set-mark: invalid argument
--or-mark: kernel too old for --or-mark
--and-mark: kernel too old for --and-mark

I investigated libipt_MARK.c and found that there were two parsing functions,
parse_v0 and parse_v1, used by
struct iptables_target mark_v0
and
struct iptables_target mark_v1

void _init(void) registers both mark_v0 and mark_v1 as targets, one after the
other.

I found that by commenting out the first 'register_target()', the MARK target
worked again.

I found the following entry in the mailing archives, which contains the
patch that inserts the two different targets;
http://lists.netfilter.org/pipermail/netfilter-devel/2005-January/017976.html

Is this something that needs fixing, or is it known about already?

Cheers,
Graham.

             reply	other threads:[~2005-03-17 16:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17 16:52 Graham Keeling [this message]
2005-03-17 22:04 ` iptables 1.3.1 MARK target Pablo Neira
2005-03-17 22:13   ` Pablo Neira

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=20050317165248.GB28102@ltsp \
    --to=graham@equiinet.com \
    --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.