lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 6 Oct 2020 23:11:12 -0700
From:   David Ahern <dsahern@...il.com>
To:     Antony Antony <antony@...nome.org>,
        Stephen Hemminger <stephen@...workplumber.org>,
        David Ahern <dsahern@...il.com>
Cc:     netdev@...r.kernel.org
Subject: Re: [PATCH iproute2-net v2] ip xfrm: support setting
 XFRMA_SET_MARK_MASK attribute in states

On 10/2/20 6:22 AM, Antony Antony wrote:
> The XFRMA_SET_MARK_MASK attribute can be set in states (4.19+)
> It is optional and the kernel default is 0xffffffff
> It is the mask of XFRMA_SET_MARK(a.k.a. XFRMA_OUTPUT_MARK in 4.18)
> 
> e.g.
> ./ip/ip xfrm state add output-mark 0x6 mask 0xab proto esp \
>  auth digest_null 0 enc cipher_null ''
> ip xfrm state
> src 0.0.0.0 dst 0.0.0.0
> 	proto esp spi 0x00000000 reqid 0 mode transport
> 	replay-window 0
> 	output-mark 0x6/0xab
> 	auth-trunc digest_null 0x30 0
> 	enc ecb(cipher_null)
> 	anti-replay context: seq 0x0, oseq 0x0, bitmap 0x00000000
> 	sel src 0.0.0.0/0 dst 0.0.0.0/0
> 
> Signed-off-by: Antony Antony <antony@...nome.org>
> ---
>  v1 -> v2
>   - add man page and usage for mask
> --
>  ip/xfrm_state.c    | 23 ++++++++++++++++++-----
>  man/man8/ip-xfrm.8 |  4 +++-
>  2 files changed, 21 insertions(+), 6 deletions(-)
> 
applied to iproute2-next. Thanks


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ