From: Jesper Dangaard Brouer <hawk@diku.dk>
To: Netfilter Developers <netfilter-devel@vger.kernel.org>
Cc: paulmck@linux.vnet.ibm.com, Eric Dumazet <eric.dumazet@gmail.com>,
netdev <netdev@vger.kernel.org>
Subject: [RFC 1/3] MPEG2/TS drop analyzer file: xt_mp2t.h
Date: Tue, 19 Oct 2010 16:25:24 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.1010191624300.19390@ask.diku.dk> (raw)
In-Reply-To: <Pine.LNX.4.64.1010191608080.18708@ask.diku.dk>
/*
* Header file for MPEG2 TS match extension "mp2t" for Xtables.
*
* Copyright (c) Jesper Dangaard Brouer <jdb@comx.dk>, 2009+
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License; either
* version 2 of the License, or any later version, as published by the
* Free Software Foundation.
*
*/
#ifndef _LINUX_NETFILTER_XT_MP2T_MATCH_H
#define _LINUX_NETFILTER_XT_MP2T_MATCH_H 1
#define XT_MODULE_NAME "xt_mp2t"
#define XT_MODULE_VERSION "0.2.1-devel"
#define XT_MODULE_RELDATE "Sep 15, 2010"
#define PFX XT_MODULE_NAME ": "
static char version[] =
XT_MODULE_NAME ".c:v" XT_MODULE_VERSION " (" XT_MODULE_RELDATE ")";
enum {
XT_MP2T_DETECT_DROP = 1 << 0,
XT_MP2T_MAX_STREAMS = 1 << 1,
XT_MP2T_PARAM_NAME = 1 << 2,
};
/* Details of this hash structure is hidden in kernel space xt_mp2t.c */
struct xt_rule_mp2t_conn_htable;
struct mp2t_cfg {
/* Hash table setup */
u_int32_t size; /* how many hash buckets */
u_int32_t max; /* max number of entries */
u_int32_t max_list; /* warn if list searches exceed this number */
};
struct xt_mp2t_mtinfo {
__u16 flags;
/* FIXME:
I need to fix the problem, where I have to reallocated data
each time a single rule change occur.
The idea with rule_name and rule_id is that the name is
optional, simply to provide a name in /proc/, the rule_id
is the real lookup-key in the internal kernel list of the
rules associated dynamic-allocated-data.
*/
char rule_name[IFNAMSIZ];
struct mp2t_cfg cfg;
/** Below used internally by the kernel **/
__u32 rule_id;
/* Hash table pointer */
struct xt_rule_mp2t_conn_htable *hinfo __attribute__((aligned(8)));
};
#endif /* _LINUX_NETFILTER_XT_MP2T_MATCH_H */
next prev parent reply other threads:[~2010-10-19 14:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-19 14:21 [RFC 0/3] MPEG2/TS drop analyzer iptables match extension Jesper Dangaard Brouer
2010-10-19 14:25 ` Jesper Dangaard Brouer [this message]
2010-10-19 14:26 ` [RFC 2/3] MPEG2/TS drop analyzer file: xt_mp2t.c Jesper Dangaard Brouer
2010-10-19 14:27 ` [RFC 3/3] MPEG2/TS drop analyzer file: libxt_mp2t.c Jesper Dangaard Brouer
2010-11-04 0:16 ` [RFC 0/3] MPEG2/TS drop analyzer iptables match extension Jan Engelhardt
2010-11-04 9:20 ` Jesper Dangaard Brouer
2010-11-04 10:29 ` Jan Engelhardt
2010-11-10 11:02 ` Jesper Dangaard Brouer
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=Pine.LNX.4.64.1010191624300.19390@ask.diku.dk \
--to=hawk@diku.dk \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
/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).