File: Use-ieee-data-package.patch

package info (click to toggle)
arp-scan 1.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,624 kB
  • sloc: ansic: 5,289; sh: 959; perl: 856; makefile: 17
file content (90 lines) | stat: -rw-r--r-- 3,038 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
From: Marcos Fouces <marcos.fouces@gmail.com>
Date: Tue, 21 Aug 2018 21:56:50 +0200
Subject: Use data from ieee-data package instead of downloading from ieee
 website.

---
 get-iab   | 8 +++++---
 get-oui   | 5 +++--
 get-oui.1 | 3 +++
 3 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/get-iab b/get-iab
index be1f594..b1d9692 100755
--- a/get-iab
+++ b/get-iab
@@ -18,6 +18,7 @@
 # along with arp-scan.  If not, see <http://www.gnu.org/licenses/>.
 #
 # get-iab -- Fetch the IAB file from the IEEE website
+#    (on Debian and Debian based systems, it uses ieee-data package)
 #
 # Author: Roy Hills
 # Date: 16 March 2006
@@ -34,14 +35,15 @@ use strict;
 use Getopt::Std;
 use LWP::UserAgent;
 #
-my $default_url = 'http://standards.ieee.org/develop/regauth/iab/iab.txt';
+my $default_url = 'file://var/lib/ieee-data/iab.txt';
 # http://standards.ieee.org/develop/regauth/oui36/oui36.txt
 my $default_filename='ieee-iab.txt';
 #
 my $usage =
 qq/Usage: get-iab [options]
-Fetch the Ethernet IAB file from the IEEE website, and save it in the format
-used by arp-scan.
+Fetch the Ethernet IAB file from the IEEE website, 
+(on Debian and Debian based systems, data is fetched from ieee-data package)
+and save it in the format used by arp-scan.
 
 'options' is one or more of:
         -h Display this usage message.
diff --git a/get-oui b/get-oui
index 543fabe..31fd569 100755
--- a/get-oui
+++ b/get-oui
@@ -30,12 +30,13 @@ use strict;
 use Getopt::Std;
 use LWP::UserAgent;
 #
-my $default_url = 'http://standards-oui.ieee.org/oui/oui.txt';
+my $default_url = 'file://var/lib/ieee-data/oui.txt';
 my $default_filename='ieee-oui.txt';
 #
 my $usage =
 qq/Usage: get-oui [options]
-Fetch the Ethernet OUI file from the IEEE website, and save it in the format
+Fetch the Ethernet OUI file from the IEEE website (on Debian and Debian based systems, 
+data is fetched from ieee-data package), and save it in the format
 used by arp-scan.
 
 'options' is one or more of:
diff --git a/get-oui.1 b/get-oui.1
index 0576ee3..0088067 100644
--- a/get-oui.1
+++ b/get-oui.1
@@ -8,6 +8,7 @@
 .\" Please adjust this date whenever revising the man page.
 .SH NAME
 get-oui \- Fetch the arp-scan OUI file from the IEEE website
+(on Debian and Debian based systems, data is fetched from ieee-data package)
 .SH SYNOPSIS
 .B get-oui
 .RI [ options ]
@@ -50,6 +51,7 @@ OUI file up to date.
 .PP
 The OUI data is fetched from the URL
 .I http://standards-oui.ieee.org/oui/oui.txt
+(on Debian and Debian based systems, data is fetched from ieee-data package)
 and the output file is saved to the file
 .I ieee-oui.txt
 in the current directory. The URL to fetch the data from can be changed with
@@ -84,6 +86,7 @@ Write the output to the specified file instead of the default
 .B -u <URL>
 Use the specified URL to fetch the raw OUI data from instead of the default
 .I http://standards-oui.ieee.org/oui/oui.txt.
+(on Debian and Debian based systems, data is fetched from ieee-data package)
 .TP
 .B -v
 Display verbose progress messages.