From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2005@gmx.net>
To: Harald Welte <laforge@netfilter.org>
Cc: Netfilter Development Mailinglist
<netfilter-devel@lists.netfilter.org>,
David Miller <davem@davemloft.net>,
Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
Subject: Re: [PATCH/RFC/RFT] add "revision" support to arp_tables and ip6_tables
Date: Mon, 10 Oct 2005 11:41:15 +0200 [thread overview]
Message-ID: <434A373B.1060406@gmx.net> (raw)
In-Reply-To: <20051009222628.GC6593@rama.customers.eurospot.com>
Hi,
Harald Welte schrieb:
>
> I've added "revision" (i.e. support for multiple match/target versions)
> to arp_tables and ip6_tables.
>
> At least according to some simple tests, I didn't break anything. It's
> already in my git tree's 'master' branch, and I intend to submit it
> during early 2.6.15.
>
> Please test/comment/fix,
> Harald
>
>
> [NETFILTER] {ip6,arp}_tables: Add support for match/target revisions
>
> This patch synchronizes {ip6,arp}_tables with recent changes in ip_tables.
> It adds support for multiple revisions per match/target.
>
> diff --git a/include/linux/netfilter_arp/arp_tables.h b/include/linux/netfilter_arp/arp_tables.h
> --- a/include/linux/netfilter_arp/arp_tables.h
> +++ b/include/linux/netfilter_arp/arp_tables.h
> @@ -68,7 +68,8 @@ struct arpt_entry_target
> u_int16_t target_size;
>
> /* Used by userspace */
> - char name[ARPT_FUNCTION_MAXNAMELEN];
> + char name[ARPT_FUNCTION_MAXNAMELEN-1];
> + u_int8_t revision;
> } user;
> struct {
> u_int16_t target_size;
This will explode once revision!=0 because the string stored in name is
not NULL-terminated anymore if it is ARPT_FUNCTION_MAXNAMELEN-1 long.
Regards,
Carl-Daniel
next prev parent reply other threads:[~2005-10-10 9:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-09 22:26 [PATCH/RFC/RFT] add "revision" support to arp_tables and ip6_tables Harald Welte
2005-10-10 9:41 ` Carl-Daniel Hailfinger [this message]
2005-10-10 16:32 ` Harald Welte
2005-10-11 13:10 ` Yasuyuki KOZAKAI
2005-10-11 13:36 ` Henrik Nordstrom
2005-10-14 22:32 ` David S. Miller
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=434A373B.1060406@gmx.net \
--to=c-d.hailfinger.devel.2005@gmx.net \
--cc=davem@davemloft.net \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.org \
--cc=yasuyuki.kozakai@toshiba.co.jp \
/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.