From: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
To: netfilter-devel@lists.netfilter.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2.6.20 10/10] nfnetlink_log: enable packet timestamps
Date: Mon, 12 Feb 2007 01:40:42 +0100 [thread overview]
Message-ID: <20070212004042.GK8262@rere.qmqm.pl> (raw)
It's nice to log packet arrival time of those little filthy packets. ;)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
--- linux-2.6.20/net/netfilter/nfnetlink_log.c.8 2007-02-11 23:59:01.000000000 +0100
+++ linux-2.6.20/net/netfilter/nfnetlink_log.c 2007-02-12 00:19:16.000000000 +0100
@@ -195,6 +195,10 @@ instance_create(u_int16_t group_num, int
write_unlock_bh(&instances_lock);
+ /* we want timestamps! we want to log those bastards! */
+ if (inst)
+ net_enable_timestamp();
+
return inst;
}
@@ -230,6 +234,9 @@ _instance_destroy2(struct nfulnl_instanc
/* and finally put the refcount */
instance_put(inst);
+
+ /* we don't want timestamps anymore (decrement the counter) */
+ net_disable_timestamp();
}
static inline void
reply other threads:[~2007-02-12 9:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070212004042.GK8262@rere.qmqm.pl \
--to=mirq-linux@rere.qmqm.pl \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).