From: Thomas Kling <thomasmkling@yahoo.de>
To: netfilter@lists.netfilter.org
Subject: how get tcp_conntrack?
Date: Mon, 16 May 2005 18:33:41 +0200 [thread overview]
Message-ID: <371529952.20050516183341@yahoo.de> (raw)
Hello,
I put his question to netfilter-devel, but did get no reply. I'm just
wondering if my problem is too trivial or impossible with iptables,
here it is:
I want to write an extended logging of TCP-Connections: iptables -A INPUT -j LOGTCP
LOGTCP should just be a copy of ipt_LOG.c:
/* --------copy------------
static void dump_packet(const struct ipt_log_info *info, const struct sk_buff *skb, unsigned int iphoff)
{
...
case IPPROTO_TCP: {
struct tcphdr _tcph, *th;
/* Max length: 10 "PROTO=TCP " */
printk("PROTO=TCP ");
...
[*]
...
break;
--------copy------------ /*
And here [*] I want to call some functions from tcp_conntrack:
printk("tcp_in_window, sender->td_end, sender->td_maxend, sender->maxwin, receiver->td_end, receiver->td_maxend, receiver->td_maxwin);
The problem: I just don't know how to access these values from there.
ip_conntrack_get gives me a pointer to nowhere. I looked through
several other modules, but didn't find the idea to get started.
reply other threads:[~2005-05-16 16:33 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=371529952.20050516183341@yahoo.de \
--to=thomasmkling@yahoo.de \
--cc=netfilter@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.