All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laszlo Valko <valko@linux.karinthy.hu>
To: Don Cohen <don-netf@isis.cs3-inc.com>
Cc: Harald Welte <laforge@gnumonks.org>, netfilter-devel@lists.netfilter.org
Subject: Re: iptables u32 match patch-o-matic (attempt)
Date: Wed, 29 Jan 2003 09:09:45 +0100	[thread overview]
Message-ID: <20030129090945.A880@linux.karinthy.hu> (raw)
In-Reply-To: <15927.22044.618895.821767@isis.cs3-inc.com>; from don-netf@isis.cs3-inc.com on Tue, Jan 28, 2003 at 08:18:36PM -0800

Hi Don!

May I ask you to change those u_int8_t's to u_int32_t in 
struct ipt_u32_location_element, struct ipt_u32_value_element,
struct ipt_u32_test, struct ipt_u32?

There's really no point in making those integers 1 byte long when every
second field is (a multiple of) 4 byte long and thus will eventually get
padded during compilation. It just complicates matters.

Thanks,
Laszlo

On Tue, Jan 28, 2003 at 08:18:36PM -0800, Don Cohen wrote:
> +struct ipt_u32_location_element
> +{
> +	u_int32_t number;
> +	u_int8_t nextop;
> +};
> +struct ipt_u32_value_element
> +{
> +	u_int32_t min;
> +	u_int32_t max;
> +};
> +/* *** any way to allow for an arbitrary number of elements?
> +   for now I settle for a limit of 10 of each */
> +#define U32MAXSIZE 10
> +struct ipt_u32_test
> +{
> +	u_int8_t nnums;
> +	struct ipt_u32_location_element location[U32MAXSIZE+1];
> +	u_int8_t nvalues;
> +	struct ipt_u32_value_element value[U32MAXSIZE+1];
> +};
> +
> +struct ipt_u32
> +{
> +	u_int8_t ntests;
> +	struct ipt_u32_test tests[U32MAXSIZE+1];
> +};

  reply	other threads:[~2003-01-29  8:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030128234654.29362.28104.Mailman@kashyyyk>
2003-01-29  4:18 ` iptables u32 match patch-o-matic (attempt) Don Cohen
2003-01-29  8:09   ` Laszlo Valko [this message]
2003-01-29 15:28     ` Don Cohen
2003-01-31 10:16       ` Harald Welte
2003-02-01  0:23         ` Laszlo Valko
2003-01-31 10:19   ` Harald Welte
2002-12-27 18:54 iptables u32 match code for review/testing/ Don Cohen
2003-01-06 12:57 ` Harald Welte
2003-01-06 17:04   ` Don Cohen
2003-01-07 18:57     ` Harald Welte
2003-01-08  6:41       ` Don Cohen
2003-01-08 10:56         ` Harald Welte
2003-01-08 22:10           ` iptables u32 match patch-o-matic (attempt) Don Cohen
2003-01-11 19:47             ` Harald Welte
2003-01-12 21:11               ` Don Cohen
2003-01-25 18:39                 ` Harald Welte

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=20030129090945.A880@linux.karinthy.hu \
    --to=valko@linux.karinthy.hu \
    --cc=don-netf@isis.cs3-inc.com \
    --cc=laforge@gnumonks.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 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.