#633998 macchanger: exit(1) if -m sets the current address

Package:
macchanger
Source:
macchanger
Description:
utility for manipulating the MAC address of network interfaces
Submitter:
Sebastian Andrzej Siewior
Date:
2014-07-14 10:18:07 UTC
Severity:
normal
Tags:
#633998#5
Date:
2011-07-15 19:26:08 UTC
From:
To:
Please find three patches attached with proper description. This
includes:

| fix constant mac addresses in case they are specified more than once
|
| I have
| |pre-up macchanger -m 00:00:00:00:00:01 wlan0
|
| in my network script. The first ifup works, the second fails with:
|
| |mikejones:~# ifup wlan0
| |Permanent MAC: xx:xx:xx:xx:xx:xx (xxx)
| |Current   MAC: 00:00:00:00:00:01 (unknown)
| |It's the same MAC!!
| |Failed to bring up wlan0.

and

| Make -A not always use wired MACs
|
| The length of list is computed wrong, it is negative. This results that in
| entries from list_others being picked and never from the the wireless list.
| This patch changes this by taking a 50% - 50% chance. Using the number of
| enties as a delimination would be also possible but since the wireles has way
| less entries is hardly possible.

Sebastian

#633998#10
Date:
2014-07-11 16:29:43 UTC
From:
To:
0003-Don-t-leave-with-un-initialized-ret-in-an-error-case.patch
no longer are relevant for the version in testing.