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: <20240603090327.44d43f53@wsk>
Date: Mon, 3 Jun 2024 09:03:27 +0200
From: Lukasz Majewski <lukma@...x.de>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org, Paolo Abeni
 <pabeni@...hat.com>, Eric Dumazet <edumazet@...gle.com>, Vladimir Oltean
 <olteanv@...il.com>, "David S. Miller" <davem@...emloft.net>, Oleksij
 Rempel <o.rempel@...gutronix.de>, Tristram.Ha@...rochip.com, Sebastian
 Andrzej Siewior <bigeasy@...utronix.de>, Ravi Gunasekaran
 <r-gunasekaran@...com>, Simon Horman <horms@...nel.org>, Nikita
 Zhandarovich <n.zhandarovich@...tech.ru>, Murali Karicheri
 <m-karicheri2@...com>, Arvid Brodin <Arvid.Brodin@...n.com>, Dan Carpenter
 <dan.carpenter@...aro.org>, "Ricardo B. Marliere" <ricardo@...liere.net>,
 Casper Andersson <casper.casan@...il.com>, linux-kernel@...r.kernel.org,
 linux-kselftest@...r.kernel.org, Geliang Tang <tanggeliang@...inos.cn>,
 Shuah Khan <shuah@...nel.org>
Subject: Re: [PATCH] selftests: hsr: Extend the hsr_redbox.sh test to use
 fixed MAC addresses

Hi Hangbin,

> On Wed, May 29, 2024 at 04:22:32PM +0200, Lukasz Majewski wrote:
> > Fixed MAC addresses help with debugging as last four bytes identify
> > the network namespace.
> > 
> > Moreover, it allows to mimic the real life setup with for example
> > bridge having the same MAC address on each port.
> > 
> > Signed-off-by: Lukasz Majewski <lukma@...x.de>
> > ---
> >  tools/testing/selftests/net/hsr/hsr_redbox.sh | 15 +++++++++++++++
> >  1 file changed, 15 insertions(+)
> > 
> > diff --git a/tools/testing/selftests/net/hsr/hsr_redbox.sh
> > b/tools/testing/selftests/net/hsr/hsr_redbox.sh index
> > 1f36785347c0..998103502d5d 100755 ---
> > a/tools/testing/selftests/net/hsr/hsr_redbox.sh +++
> > b/tools/testing/selftests/net/hsr/hsr_redbox.sh @@ -96,6 +96,21 @@
> > setup_hsr_interfaces() ip -n "${ns4}" link set ns4eth1 up
> >  	ip -n "${ns5}" link set ns5eth1 up
> >  
> > +	ip -net "$ns1" link set address 00:11:22:00:01:01 dev
> > ns1eth1
> > +	ip -net "$ns1" link set address 00:11:22:00:01:02 dev
> > ns1eth2 +
> > +	ip -net "$ns2" link set address 00:11:22:00:02:01 dev
> > ns2eth1
> > +	ip -net "$ns2" link set address 00:11:22:00:02:02 dev
> > ns2eth2
> > +	ip -net "$ns2" link set address 00:11:22:00:02:03 dev
> > ns2eth3 +
> > +	ip -net "$ns3" link set address 00:11:22:00:03:11 dev
> > ns3eth1
> > +	ip -net "$ns3" link set address 00:11:22:00:03:11 dev
> > ns3eth2
> > +	ip -net "$ns3" link set address 00:11:22:00:03:11 dev
> > ns3eth3
> > +	ip -net "$ns3" link set address 00:11:22:00:03:11 dev
> > ns3br1  
> 
> The ns3's mac addresses are same, is it a copy-paste error?
> 

No, it is to mimic the switch behaviour.

> BTW, please add the target tree for the patch, e.g.
> 
> [PATCH net-next]

Ok.

> 
> Thanks
> Hangbin




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@...x.de

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ