jer 14/07/14 22:12:54
Added: netdiscover-0.3_beta6-gentoo.patch
netdiscover-0.3_beta6-misc.patch
Log:
Change sed scripts into patches. Split out logic from OUI database patch.
Clean up OUI database patch.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key
A792A613)
Revision Changes Path
1.1
net-analyzer/netdiscover/files/netdiscover-0.3_beta6-gentoo.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netdiscover/files/netdiscover-0.3_beta6-gentoo.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netdiscover/files/netdiscover-0.3_beta6-gentoo.patch?rev=1.1&content-type=text/plain
Index: netdiscover-0.3_beta6-gentoo.patch
===================================================================
--- a/configure.in
+++ b/configure.in
@@ -5,7 +5,7 @@
AC_INIT(configure.in)
AM_INIT_AUTOMAKE(netdiscover, 0.3-beta6)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
AM_MAINTAINER_MODE
dnl get system information
@@ -35,7 +35,6 @@
AC_ISC_POSIX
AC_PROG_CC
-AM_PROG_CC_STDC
AC_HEADER_STDC
AM_PROG_LIBTOOL
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,8 +5,8 @@
SUBDIRS = src doc
-netdiscoverdocdir = ${prefix}/doc/netdiscover
-netdiscoverdoc_DATA = \
+noinstdir = ${prefix}/doc/netdiscover
+noinst_DATA = \
README\
COPYING\
AUTHORS\
@@ -15,7 +15,7 @@
NEWS\
TODO
-EXTRA_DIST = $(netdiscoverdoc_DATA)
+EXTRA_DIST = $(noinst_DATA)
1.1
net-analyzer/netdiscover/files/netdiscover-0.3_beta6-misc.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netdiscover/files/netdiscover-0.3_beta6-misc.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netdiscover/files/netdiscover-0.3_beta6-misc.patch?rev=1.1&content-type=text/plain
Index: netdiscover-0.3_beta6-misc.patch
===================================================================
--- a/src/misc.c
+++ b/src/misc.c
@@ -33,7 +33,7 @@
char *search_vendor(unsigned char mac[6])
{
- char tmac[6];
+ char tmac[7];
int i = 0;
sprintf(tmac, "%02x%02x%02x", mac[0], mac[1], mac[2]);
@@ -42,7 +42,7 @@
for (i=0; i<6; i++)
tmac[i] = toupper(tmac[i]);
- for (i=0; i<8436; i++)
+ for (i=0; i<NUM_OUI_RECORDS; i++)
{
if (strcmp(oui_table[i].prefix, tmac) == 0)
return oui_table[i].vendor;