All of lore.kernel.org
 help / color / mirror / Atom feed
From: Piotr Chytla <pch@packetconsulting.pl>
To: netfilter-devel@lists.netfilter.org
Subject: CONNMARK target without ip_conntrack
Date: Wed, 19 Oct 2005 00:17:02 +0200	[thread overview]
Message-ID: <20051018221702.GA22386@packetconsulting.pl> (raw)

Hi

Today one of my friends told me about very simple problem with CONNMARK ,
after loading it without ip_conntrack, everything is ok but marking
isn't working . 

In ipt_CONNMARK.c I've found in function target :

[..]
static unsigned int
target(struct sk_buff **pskb,
       const struct net_device *in,
       const struct net_device *out,
       unsigned int hooknum,
       const void *targinfo,
       void *userinfo)
{
[..]
        enum ip_conntrack_info ctinfo;
        struct ip_conntrack *ct = ip_conntrack_get((*pskb), &ctinfo);
        if (ct) {
		[..] - set/save/restore mark
	} 
[..]

Mark set/restore/save is set when ip_conntrack structure exist , but
there is no warning message in logs about not loaded ip_conntrack or
something similar. Maybe it's wise to put some warning message :

if (ct) {
	[..]
} else printk(KERN_ERR "CONNMARK: no conntrack!\n");

/pch

-- 
Dyslexia bug unpatched since 1977 ...
exploit has been leaked to the underground.

             reply	other threads:[~2005-10-18 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18 22:17 Piotr Chytla [this message]
2005-10-18 22:34 ` CONNMARK target without ip_conntrack 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=20051018221702.GA22386@packetconsulting.pl \
    --to=pch@packetconsulting.pl \
    --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.