From: Roberto Nibali <ratz@drugphish.ch>
To: "PedroRibeiro (B)" <pribeiro-bulk@net.ipl.pt>
Cc: netfilter development <netfilter-devel@lists.netfilter.org>
Subject: Re: Patch to avoid MAC header logging
Date: Mon, 05 Jul 2004 12:49:18 +0200 [thread overview]
Message-ID: <40E9322E.8080704@drugphish.ch> (raw)
In-Reply-To: <658614730.20040705101241@net.ipl.pt>
Hello,
just my two cents ...
> I hope this is the right place to post this patch I'v made ...
Yes.
> My problem was that logs generated by "-j LOG" being full of mac
> headers that didn't have any information to me (the machine is after a
> router, so the MAC source is always from the router).
Fair enough.
> Excess of redundant information is misinformation to me ...
Ok.
> So I'v decided to make this small (tiny) modifications to the LOG
> module, adding a flag to disable MAC headers logging.
Hmm, the way I see it you added a feature to enable MAC header logging
and disabled it by default.
> I'm sure this will make other people happy too.
Not me ;).
> + case '4':
> + if (*flags & IPT_LOG_MAC)
> + exit_error(PARAMETER_PROBLEM,
> + "Can't specify --log-mac-header twice");
Side comment: Why? I mean you just copied what was there already, but
why is this a problem? Setting a flag a thousand times doesn't change
the end result of the flag being set. Am I missing something design wise?
> diff -wurNbB linux-2.4.22/net/ipv4/netfilter/ipt_LOG.c linux-2.4.22pr1/net/ipv4/netfilter/ipt_LOG.c
> --- linux-2.4.22/net/ipv4/netfilter/ipt_LOG.c 2002-02-25 19:38:14.000000000 +0000
> +++ linux-2.4.22pr1/net/ipv4/netfilter/ipt_LOG.c 2003-11-12 22:37:27.000000000 +0000
> @@ -289,7 +289,7 @@
> loginfo->prefix,
> in ? in->name : "",
> out ? out->name : "");
> - if (in && !out) {
> + if (in && !out && (loginfo->logflags & IPT_LOG_MAC)) {
Your new default (IPT_LOG_MAC unset) breaks existing userland tools that
depend on this output for parsing and further correlation.
Best regards,
Roberto Nibali, ratz
--
echo
'[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc
prev parent reply other threads:[~2004-07-05 10:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-05 9:12 Patch to avoid MAC header logging PedroRibeiro (B)
2004-07-05 10:49 ` Roberto Nibali [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=40E9322E.8080704@drugphish.ch \
--to=ratz@drugphish.ch \
--cc=netfilter-devel@lists.netfilter.org \
--cc=pribeiro-bulk@net.ipl.pt \
/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.