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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <804e9942-8697-4703-3cde-5f74d916e325@redhat.com>
Date:   Sat, 27 Nov 2021 10:51:53 +0100
From:   Jesper Dangaard Brouer <jbrouer@...hat.com>
To:     Ong Boon Leong <boon.leong.ong@...el.com>, bpf@...r.kernel.org,
        netdev@...r.kernel.org
Cc:     brouer@...hat.com, bjorn@...nel.org,
        Magnus Karlsson <magnus.karlsson@...el.com>,
        Alexei Starovoitov <ast@...nel.org>,
        Daniel Borkmann <daniel@...earbox.net>,
        "David S . Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        Jesper Dangaard Brouer <hawk@...nel.org>,
        John Fastabend <john.fastabend@...il.com>,
        Andrii Nakryiko <andrii@...nel.org>,
        Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>
Subject: Re: [PATCH bpf-next 2/4] samples/bpf: xdpsock: add Dest and Src MAC
 setting for Tx-only operation



On 24/11/2021 10.18, Ong Boon Leong wrote:
> To set Dest MAC address (-G|--tx-dmac) only:
>   $ xdpsock -i eth0 -t -N -z -G aa:bb:cc:dd:ee:ff
> 
> To set Source MAC address (-H|--tx-smac) only:
>   $ xdpsock -i eth0 -t -N -z -H 11:22:33:44:55:66
> 
> To set both Dest and Source MAC address:
>   $ xdpsock -i eth0 -t -N -z -G aa:bb:cc:dd:ee:ff \
>     -H 11:22:33:44:55:66
> 
> The default Dest and Source MAC address remain the same as before.
> 
> Signed-off-by: Ong Boon Leong<boon.leong.ong@...el.com>
> ---
>   samples/bpf/xdpsock_user.c | 36 +++++++++++++++++++++++++++++++-----
>   1 file changed, 31 insertions(+), 5 deletions(-)

Acked-by: Jesper Dangaard Brouer <brouer@...hat.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ