bes2600 driver
#46
In context of the whole "random mac address" topic I want to point out that it looks very much like whoever wrote it mean this as a feature and not a bug. If anyone with the proper understanding wishes to hard code their mac address into the driver, they can easily.

One might find in lines 

https://gitlab.com/TuxThePenguin0/bes260...=heads#L41

and

https://gitlab.com/TuxThePenguin0/bes260...heads#L262

We first set a template, i.e. 02:80:e1:00:00:00, for the mac address and in the second mentioned line we check whether the last 3 bytes of the currently set mac address are all equal to zero. Only if the mac address has all zeros at the end, the randomization is set. So, if one just changes the template to not have all zeros in the end, the randomization function is not called and the mac address will effectively remain as the one set as the template.

Changing this and recompiling the driver worked for me to achieve a stable mac address. Of course this is a workaround and not a clean solution to the issue. I agree with Kevin Köfler saying we should be honoring userspace override of the mac address https://gitlab.com/TuxThePenguin0/bes2600/-/issues/5
  Reply


Messages In This Thread
bes2600 driver - by mshelby - 07-16-2023, 09:59 PM
RE: bes2600 driver - by gregb49 - 07-17-2023, 11:46 AM
RE: bes2600 driver - by diederik - 07-17-2023, 05:02 PM
RE: bes2600 driver - by dachalife - 07-18-2023, 09:32 AM
RE: bes2600 driver - by zoward - 07-21-2023, 02:21 PM
RE: bes2600 driver - by frtodd - 07-23-2023, 02:33 PM
RE: bes2600 driver - by mshelby - 08-09-2023, 09:06 AM
RE: bes2600 driver - by FortunateFowl - 08-18-2023, 06:17 AM
RE: bes2600 driver - by spenk - 08-23-2023, 06:49 AM
RE: bes2600 driver - by arjan1995 - 09-01-2023, 07:21 AM
RE: bes2600 driver - by tllim - 09-03-2023, 11:20 PM
RE: bes2600 driver - by gregb49 - 09-15-2023, 07:28 AM
RE: bes2600 driver - by mshelby - 10-19-2023, 09:40 AM
RE: bes2600 driver - by dekker - 11-03-2023, 11:18 AM
RE: bes2600 driver - by zoward - 09-04-2023, 04:59 PM
RE: bes2600 driver - by m3henry - 09-10-2023, 06:07 PM
RE: bes2600 driver - by 459below - 10-06-2023, 02:53 PM
RE: bes2600 driver - by spenk - 10-20-2023, 01:49 PM
RE: bes2600 driver - by 459below - 11-05-2023, 08:38 PM
RE: bes2600 driver - by genobraker - 11-22-2023, 01:48 PM
RE: bes2600 driver - by 459below - 11-28-2023, 03:28 PM
RE: bes2600 driver - by genobraker - 11-29-2023, 07:11 PM
RE: bes2600 driver - by explit - 11-19-2023, 06:09 PM
RE: bes2600 driver - by Kevin Kofler - 11-19-2023, 11:59 PM
RE: bes2600 driver - by explit - 11-20-2023, 06:20 AM
RE: bes2600 driver - by Kevin Kofler - 11-20-2023, 04:36 PM
RE: bes2600 driver - by explit - 11-20-2023, 05:19 PM
RE: bes2600 driver - by Kevin Kofler - 11-21-2023, 06:42 PM
RE: bes2600 driver - by explit - 11-21-2023, 10:27 PM
RE: bes2600 driver - by Kevin Kofler - 11-21-2023, 10:44 PM
RE: bes2600 driver - by explit - 11-22-2023, 11:24 AM
RE: bes2600 driver - by explit - 11-22-2023, 05:15 PM
RE: bes2600 driver - by Kevin Kofler - 11-23-2023, 11:21 PM
RE: bes2600 driver - by explit - 11-24-2023, 12:37 AM
RE: bes2600 driver - by explit - 11-26-2023, 06:19 PM
RE: bes2600 driver - by Kevin Kofler - 11-24-2023, 05:53 AM
RE: bes2600 driver - by Kevin Kofler - 11-26-2023, 10:27 PM
RE: bes2600 driver - by explit - 11-28-2023, 09:38 AM
RE: bes2600 driver - by diederik - 11-29-2023, 07:26 PM
RE: bes2600 driver - by explit - 11-28-2023, 08:19 PM
RE: bes2600 driver - by explit - 11-29-2023, 02:01 AM
RE: bes2600 driver - by explit - 11-29-2023, 07:19 PM
RE: bes2600 driver - by tophneal - 11-30-2023, 08:50 AM
RE: bes2600 driver - by gregb49 - 11-30-2023, 09:10 AM
RE: bes2600 driver - by tllim - 12-09-2023, 01:39 AM
RE: bes2600 driver - by mattpenn - 12-01-2023, 12:48 PM
RE: bes2600 driver - by 459below - 12-03-2023, 09:14 AM
RE: bes2600 driver - by explit - 12-03-2023, 10:36 AM
RE: bes2600 driver - by Kevin Kofler - 12-09-2023, 01:02 PM
RE: bes2600 driver - by tllim - 12-10-2023, 04:42 PM
RE: bes2600 driver - by diederik - 03-28-2024, 08:13 AM
RE: bes2600 driver - by u974615 - 12-19-2023, 03:30 PM
RE: bes2600 driver - by 459below - 12-24-2023, 03:43 AM
RE: bes2600 driver - by explit - 03-15-2024, 06:09 PM
RE: bes2600 driver - by diederik - 03-29-2024, 08:33 AM
RE: bes2600 driver - by tllim - 05-12-2024, 11:09 PM
RE: bes2600 driver - by scigrub - 05-30-2024, 05:02 PM
RE: bes2600 driver - by 459below - 09-21-2024, 02:09 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)