[PATCH] iptables: ip6table version support and
libip6t_multiport.fix
Yasuyuki KOZAKAI
yasuyuki.kozakai at toshiba.co.jp
Mon Oct 2 06:46:32 CEST 2006
Hello,
From: "Laurence J. Lane" <ljlane at debian.org>
Date: Sun, 1 Oct 2006 21:37:54 -0400
> On 9/10/06, Laurence J. Lane <ljlane at debian.org> wrote:
>
> > details: http://bugs.debian.org/329775
> >
> > The 329775-submitter at bugs.debian.org address reaches all
> > interested Debian parties.
> >
> > Rémi Denis-Courmont has submitted a patch to that adds version support
> > to ip6tables and updates libip6t_multiport to v1. (Rémi also posted to the
> > list but something appears to have gone wrong.)
> >
> > It Works for Me.
>
> I guess the list software ate the attachment.
Great! I'll read deeply that.
> +static void
> +parse_multi_ports_v1(const char *portstring,
> + struct xt_multiport_v1 *multiinfo,
> + const char *proto)
> +{
> + char *buffer, *cp, *next, *range;
> + unsigned int i;
> + u_int16_t m;
> +
> + buffer = strdup(portstring);
> + if (!buffer) exit_error(OTHER_PROBLEM, "strdup failed");
> +
> + for (i=0; i<XT_MULTI_PORTS; i++)
> + multiinfo->pflags[i] = 0;
> +
> + for (cp=buffer, i=0; cp && i<XT_MULTI_PORTS; cp=next, i++) {
Please use IP6T_MULTI_PORTS so that we can compile with linux 2.4.
Regards,
-- Yasuyuki Kozakai
More information about the netfilter-devel
mailing list