Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466270 - net-wireless/aircrack-ng : please patch to use oui.txt from sys-apps/hwids
Summary: net-wireless/aircrack-ng : please patch to use oui.txt from sys-apps/hwids
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 465606
  Show dependency tree
 
Reported: 2013-04-17 19:08 UTC by Ian Stakenvicius (RETIRED)
Modified: 2013-04-24 22:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to add path to oui.txt from sys-apps/hwids (aircrack-ng-oui-from-hwids.patch,1.17 KB, patch)
2013-04-17 19:08 UTC, Ian Stakenvicius (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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