Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/ipv6-toolkit/files: ipv6-toolkit-1.4.1-oui-path.patch
Date: Sat, 28 Dec 2013 18:51:41
Message-Id: 20131228185136.CFF822004E@flycatcher.gentoo.org
1 robbat2 13/12/28 18:51:36
2
3 Added: ipv6-toolkit-1.4.1-oui-path.patch
4 Log:
5 Bug #487602: bump.
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
8
9 Revision Changes Path
10 1.1 net-analyzer/ipv6-toolkit/files/ipv6-toolkit-1.4.1-oui-path.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ipv6-toolkit/files/ipv6-toolkit-1.4.1-oui-path.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ipv6-toolkit/files/ipv6-toolkit-1.4.1-oui-path.patch?rev=1.1&content-type=text/plain
14
15 Index: ipv6-toolkit-1.4.1-oui-path.patch
16 ===================================================================
17 diff -Nuar ipv6toolkit-v1.4.orig/tools/scan6.c ipv6toolkit-v1.4/tools/scan6.c
18 --- ipv6toolkit-v1.4.orig/tools/scan6.c 2013-08-24 10:38:02.557531033 -0700
19 +++ ipv6toolkit-v1.4/tools/scan6.c 2013-08-24 11:32:21.244173537 -0700
20 @@ -62,6 +62,9 @@
21 #include "scan6.h"
22 #include "ipv6toolkit.h"
23 #include <netinet/tcp.h>
24 +#ifndef OUI_DATABASE // keep this the same as the Makefiles
25 +#define OUI_DATABASE "/usr/share/ipv6toolkit/oui.txt"
26 +#endif
27
28 /* Function prototypes */
29 int init_iface_data(struct iface_data *);
30 @@ -6027,7 +6030,7 @@
31 fclose(fp);
32
33 if(!fname_f)
34 - strncpy(fname, "/usr/share/ipv6toolkit/oui.txt", MAX_FILENAME_SIZE-1);
35 + strncpy(fname, OUI_DATABASE, MAX_FILENAME_SIZE-1);
36
37 return(1);
38 }