Re: [PATCH 12/24] libxt_ipvs: restore network-byte order

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

 



On Wed, May 25, 2011 at 01:08:13AM +0200, Jan Engelhardt wrote:
> Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxxxx>
> ---
>  extensions/libxt_ipvs.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/extensions/libxt_ipvs.c b/extensions/libxt_ipvs.c
> index 88d235f..4672766 100644
> --- a/extensions/libxt_ipvs.c
> +++ b/extensions/libxt_ipvs.c
> @@ -32,12 +32,14 @@ static const struct xt_option_entry ipvs_mt_opts[] = {
>  	{.name = "vaddr", .id = O_VADDR, .type = XTTYPE_HOSTMASK,
>  	 .flags = XTOPT_INVERT},
>  	{.name = "vport", .id = O_VPORT, .type = XTTYPE_PORT,
> -	 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, vport)},
> +	 .flags = XTOPT_NBO | XTOPT_INVERT | XTOPT_PUT,
> +	 XTOPT_POINTER(s, vport)},
>  	{.name = "vdir", .id = O_VDIR, .type = XTTYPE_STRING},
>  	{.name = "vmethod", .id = O_VMETHOD, .type = XTTYPE_STRING,
>  	 .flags = XTOPT_INVERT},
>  	{.name = "vportctl", .id = O_VPORTCTL, .type = XTTYPE_PORT,
> -	 .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, vportctl)},
> +	 .flags = XTOPT_NBO | XTOPT_INVERT | XTOPT_PUT,
> +	 XTOPT_POINTER(s, vportctl)},
>  	XTOPT_TABLEEND,
>  };
>  #undef s
> -- 
> 1.7.3.4
> 
> --
> 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
> 
--
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