linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Davis <alex14641@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: [RFC] patch for invalid packet time from ULOG target of iptables
Date: Sun, 24 Aug 2003 07:16:00 -0700 (PDT)	[thread overview]
Message-ID: <20030824141600.93849.qmail@web40508.mail.yahoo.com> (raw)

I've just started playing with the ULOG target in
iptables, and I've noticed that the 'timestamp_sec'
member of the ulog_packet_msg_t struct paseed to
the user is always 0 for locally generated packets.
I was thinking of patching the ipt_ulog_target
function in net/ipv4/netfilter/ipt_ULOG.c to
check if timestamp_sec is 0 and if so, set it
to the current time by adding code to test
'timestamp_sec' after it's been set. E.g;

    pm->timestamp_sec = (*pskb)->stamp.tv_sec;
    pm->timestamp_usec = (*pskb)->stamp.tv_usec;
+   if ( pm->timestamp_sec == 0 ) {
+      pm->timestamp_sec = currrent time;
+   }

Any comments?


=====
I code, therefore I am

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

             reply	other threads:[~2003-08-24 14:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-24 14:16 Alex Davis [this message]
2003-08-24 15:00 ` [RFC] patch for invalid packet time from ULOG target of iptables Harald Welte
2003-08-24 15:20   ` Alex Davis

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=20030824141600.93849.qmail@web40508.mail.yahoo.com \
    --to=alex14641@yahoo.com \
    --cc=linux-kernel@vger.kernel.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).