From: Pablo Neira <pablo@eurodev.net>
To: Patrick McHardy <kaber@trash.net>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH] convert mport to multiport
Date: Mon, 27 Sep 2004 01:50:20 +0200 [thread overview]
Message-ID: <415755BC.8000706@eurodev.net> (raw)
In-Reply-To: <41575282.4030006@trash.net>
Hi Patrick,
Patrick McHardy wrote:
>>> +/* every entry in ports[] except for the last one has one bit in
>>> pflags
>>> + * associated with it. If this bit is set, the port is the first
>>> port of
>>> + * a portrange, with the next entry being the last.
>>> + * End of list is marked with pflags bit set and port=65535.
>>> + * If 14 ports are used (last one does not have a pflag), the last
>>> port
>>> + * is repeated to fill the last entry in ports[] */
>>> struct ipt_multiport
>>> {
>>> - u_int8_t flags; /* Type of comparison */
>>> - u_int8_t count; /* Number of ports */
>>> + u_int8_t flags:2; /* Type of comparison */
>>> + u_int16_t pflags:14; /* Port flags */
>>> u_int16_t ports[IPT_MULTI_PORTS]; /* Ports */
>>> + u_int8_t count; /* Number of ports */
>>>
>>>
>
> This breaks userspace compatibility. We can't do that, sorry.
In that case, I have the patches without that change here, I'll test
them and then I'll resend them to you again.
regards,
Pablo
next prev parent reply other threads:[~2004-09-26 23:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-26 22:55 [PATCH] convert mport to multiport Pablo Neira
2004-09-26 23:23 ` Pablo Neira
2004-09-26 23:36 ` Patrick McHardy
2004-09-26 23:50 ` Pablo Neira [this message]
2004-09-27 1:29 ` Pablo Neira
2004-09-27 1:44 ` Pablo Neira
2004-09-26 23:27 ` Phil Oester
2004-09-26 23:37 ` Pablo Neira
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=415755BC.8000706@eurodev.net \
--to=pablo@eurodev.net \
--cc=kaber@trash.net \
--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.