lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 19 Oct 2010 16:25:24 +0200 (CEST)
From:	Jesper Dangaard Brouer <>
To:	Netfilter Developers <>
Cc:, Eric Dumazet <>,
	netdev <>
Subject: [RFC 1/3] MPEG2/TS drop analyzer file: xt_mp2t.h

  * Header file for MPEG2 TS match extension "mp2t" for Xtables.
  * Copyright (c) Jesper Dangaard Brouer <>, 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.

#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[] =

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)));

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux - Powered by OpenVZ