Bug 520268 - allow changing different mac addresses within one second
Summary: allow changing different mac addresses within one second
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: macchanger
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tomas Hoger
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-29 22:47 UTC by ra
Modified: 2009-09-02 20:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 20:49:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Use pid and time for random initalization (patch needs %define _default_patch_fuzz 2) (312 bytes, patch)
2009-08-29 22:47 UTC, ra
no flags Details | Diff

Description ra 2009-08-29 22:47:34 UTC
Created attachment 359175 [details]
Use pid and time for random initalization (patch needs %define _default_patch_fuzz 2)

Description of problem:
If you want to change mac addresses of more then one interface within one second, macchanger sets only one mac address.

Version-Release number of selected component (if applicable):
1.5.0

How reproducible:
always

Steps to Reproduce:
1. macchanger -r eth0
2. macchanger -r eth1 (within one second)
  
Actual results:
eth0 and eth1 get the very same mac address.

Expected results:
eth0 and eth1 should get different mac addresses.

Additional info:
patch has already been submitted and excepted upstream and will be included in the next release. but looking at the release history the next release will unlikely be within the next months..

Comment 1 Tomas Hoger 2009-08-30 16:26:14 UTC
(In reply to comment #0)
> If you want to change mac addresses of more then one interface within one
> second, macchanger sets only one mac address.

Right, I learnt about this issue quite a long time before taking over this package not many days ago and was one of the first things I planned to change.  Probably easiest way to reproduce is to run macchanger in loop on one interface and see lot of errors:

  It's the same MAC!!

> patch has already been submitted and excepted upstream and will be included in
> the next release.

Excepted?  Did you mean accepted?

Comment 2 ra 2009-08-30 17:09:15 UTC
uuum.. "accepted", yes.
I sent the patch upstream (to Alvaro Lopez Ortega) about 1 year ago.

Comment 3 Tomas Hoger 2009-09-02 19:18:22 UTC
Committed in Rawhide as 1.5.0-8 with few other fixes.

Do you are about updates for F10/F11, or you're already running own patched version?

Comment 4 ra 2009-09-02 20:49:10 UTC
I have been using my own patched version and just compiled/installed 1.5.0-8 which works for me. Thank you Tomas! (:


Note You need to log in before you can comment on or make changes to this bug.