Re: netfilter: xtables: Combine ipt_TTL and ip6t_HL source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 20, 2009 at 5:16 AM, Jan Engelhardt <jengelh@xxxxxxxxxx> wrote:
> parent b0b47dffd52c2eca62bc9a7d4fdf2cd4a2022e47 (v2.6.29-rc2-16-gb0b47df)
> commit 46094aad3697c8196da64c0d5bc64c8f14557fe1
> Author: Jan Engelhardt <jengelh@xxxxxxxxxx>
> Date:   Sun Jan 18 09:02:53 2009 +0100
>
> netfilter: xtables: Combine ipt_TTL and ip6t_HL source
>
> Suggested by: James King <t.james.king@xxxxxxxxx>
>
> Similarly to commit c9fd49680954714473d6cbd2546d6ff120f96840, merge
> TTL and HL. Since HL does not depend on any IPv6-specific function,
> no new module dependencies would arise.
>
> With slight adjustments to the Kconfig help text.
>
> Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
> ---

> +static struct xt_target hl_tg_reg[] __read_mostly = {
> +       {
> +               .name       = "TTL",
> +               .revision   = 0,
> +               .family     = NFPROTO_IPV4,
> +               .target     = ttl_tg,
> +               .targetsize = sizeof(struct ipt_TTL_info),
> +               .table      = "mangle",
> +               .checkentry = ttl_tg_check,
> +               .me         = THIS_MODULE,
> +       },
> +       {
> +               .name       = "HL",
> +               .revision   = 0,
> +               .family     = NFPROTO_IPV6,
> +               .target     = hl_tg6,
> +               .targetsize = sizeof(struct ip6t_HL_info),
> +               .table      = "mangle",
> +               .checkentry = hl_tg6_check,
> +               .me         = THIS_MODULE,

Can we drop the mangle restriction at the same time?  Otherwise, looks
good to me.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux