Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 466270

Summary: net-wireless/aircrack-ng : please patch to use oui.txt from sys-apps/hwids
Product: Gentoo Linux Reporter: Ian Stakenvicius (RETIRED) <axs>
Component: Current packagesAssignee: Rick Farina (Zero_Chaos) <zerochaos>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 465606    
Attachments: patch to add path to oui.txt from sys-apps/hwids

Description Ian Stakenvicius (RETIRED) gentoo-dev 2013-04-17 19:08:37 UTC
Created attachment 345820 [details, diff]
patch to add path to oui.txt from sys-apps/hwids

net-misc/ieee-oui is going away as per bug 465606 , so aircrack-ng should depend on sys-apps/hwids and read oui.txt from /usr/share/misc/ instead of (or in addition to) /var/lib/misc.

I believe that only the live ebuild is currently affected by this, but since all aircrack-ng versions in the tree seem to use oui.txt they should probably all be updated.

I have attached a potential patch to do this, although I can't tell if it's working as expected; there is a fair number of places and ways OUI info seems to be used in the codebase and I'm not sure this covers them all.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2013-04-24 22:46:12 UTC
Index: scripts/airdrop-ng/airdrop/libOuiParse.py
===================================================================
--- scripts/airdrop-ng/airdrop/libOuiParse.py	(revision 2277)
+++ scripts/airdrop-ng/airdrop/libOuiParse.py	(working copy)
@@ -44,7 +44,7 @@
         self.OUI_PATH = ["/etc/aircrack-ng/airodump-ng-oui.txt",
             "/usr/local/etc/aircrack-ng/airodump-ng-oui.txt",
             "/usr/share/aircrack-ng/airodump-ng-oui.txt",
-            "/var/lib/misc/oui.txt",
+            "/usr/share/misc/oui.txt",
             "/etc/manuf/oui.txt",
             "/usr/share/wireshark/wireshark/manuf/oui.txt",
             "/usr/share/wireshark/manuf/oui.txt"]
Index: src/airodump-ng.h
===================================================================
--- src/airodump-ng.h	(revision 2277)
+++ src/airodump-ng.h	(working copy)
@@ -145,7 +145,7 @@
 #define OUI_PATH0 "/etc/aircrack-ng/airodump-ng-oui.txt"
 #define OUI_PATH1 "/usr/local/etc/aircrack-ng/airodump-ng-oui.txt"
 #define OUI_PATH2 "/usr/share/aircrack-ng/airodump-ng-oui.txt"
-#define OUI_PATH3 "/var/lib/misc/oui.txt"
+#define OUI_PATH3 "/usr/share/misc/oui.txt"
 #define MIN_RAM_SIZE_LOAD_OUI_RAM 32768
 
 int read_pkts=0;


I removed the ieee-oui path as we are planning on removing it.  I'm still not convinced I like the way hwids handles this at all but that discussion will be on bug #465606