1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

Update to 1.0.4

PR:		40551
Submitted by:	maintainer
This commit is contained in:
Patrick Li 2002-07-14 17:14:02 +00:00
parent 6d0ca64b72
commit 7e1fc3b638
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62934
10 changed files with 12 additions and 56 deletions

View File

@ -7,7 +7,7 @@
#
PORTNAME= cdpr
PORTVERSION= 1.0.2
PORTVERSION= 1.0.4
CATEGORIES= net
MASTER_SITES= http://www.monkeymental.com/mmfiles/ \
${MASTER_SITE_LOCAL}
@ -19,7 +19,7 @@ MAINTAINER= mich@freebsdcluster.org
USE_GCC= yes
ALL_TARGET= cdpr
DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}

View File

@ -1 +1 @@
MD5 (cdpr-1.0.2.tgz) = 1e863e357add0ea4fc5e28f8d151401a
MD5 (cdpr-1.0.4.tgz) = 040e0bc584ac3e003ba559e6c3711baf

View File

@ -1,14 +0,0 @@
--- cdpr.c.orig Tue Jul 2 09:18:44 2002
+++ cdpr.c Wed Jul 3 13:07:38 2002
@@ -452,7 +452,10 @@
/* Get the next packet that comes in, we only need one */
printf("Waiting for CDP advertisement, default config is to transmit CDP packets every 60 seconds\n");
- packet = pcap_next(handle, &header);
+ do
+ {
+ packet = pcap_next(handle, &header);
+ } while (!packet);
/* Print its length */
if(verbose > 0)

View File

@ -1,11 +0,0 @@
--- cdpr.c.orig 2002-07-09 21:13:43.000000000 -0700
+++ cdpr.c 2002-07-09 21:12:33.000000000 -0700
@@ -437,7 +437,7 @@
pcap_lookupnet(dev, &net, &mask, errbuf);
/* Open the pcap device */
- if((handle = pcap_open_live(dev, BUFSIZ, 1, 0, errbuf)) == NULL)
+ if((handle = pcap_open_live(dev, BUFSIZ, 1, 1, errbuf)) == NULL)
{
printf("Error opening device (%s)\n", errbuf);
exit(1);

View File

@ -5,5 +5,8 @@ help network/system administrators find out about the equipment that i
a machine is connected to. This is done by capturing and decoding a
Cisco Discovery Protocol (CDP) packet.
AUTHOR: Lance O'Connor <lance@monkeymental.com>
WWW: http://www.monkeymental.com/nuke/
- Michael L. Hostbaek
mich@freebsdcluster.org

View File

@ -7,7 +7,7 @@
#
PORTNAME= cdpr
PORTVERSION= 1.0.2
PORTVERSION= 1.0.4
CATEGORIES= net
MASTER_SITES= http://www.monkeymental.com/mmfiles/ \
${MASTER_SITE_LOCAL}
@ -19,7 +19,7 @@ MAINTAINER= mich@freebsdcluster.org
USE_GCC= yes
ALL_TARGET= cdpr
DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}

View File

@ -1 +1 @@
MD5 (cdpr-1.0.2.tgz) = 1e863e357add0ea4fc5e28f8d151401a
MD5 (cdpr-1.0.4.tgz) = 040e0bc584ac3e003ba559e6c3711baf

View File

@ -1,14 +0,0 @@
--- cdpr.c.orig Tue Jul 2 09:18:44 2002
+++ cdpr.c Wed Jul 3 13:07:38 2002
@@ -452,7 +452,10 @@
/* Get the next packet that comes in, we only need one */
printf("Waiting for CDP advertisement, default config is to transmit CDP packets every 60 seconds\n");
- packet = pcap_next(handle, &header);
+ do
+ {
+ packet = pcap_next(handle, &header);
+ } while (!packet);
/* Print its length */
if(verbose > 0)

View File

@ -1,11 +0,0 @@
--- cdpr.c.orig 2002-07-09 21:13:43.000000000 -0700
+++ cdpr.c 2002-07-09 21:12:33.000000000 -0700
@@ -437,7 +437,7 @@
pcap_lookupnet(dev, &net, &mask, errbuf);
/* Open the pcap device */
- if((handle = pcap_open_live(dev, BUFSIZ, 1, 0, errbuf)) == NULL)
+ if((handle = pcap_open_live(dev, BUFSIZ, 1, 1, errbuf)) == NULL)
{
printf("Error opening device (%s)\n", errbuf);
exit(1);

View File

@ -5,5 +5,8 @@ help network/system administrators find out about the equipment that i
a machine is connected to. This is done by capturing and decoding a
Cisco Discovery Protocol (CDP) packet.
AUTHOR: Lance O'Connor <lance@monkeymental.com>
WWW: http://www.monkeymental.com/nuke/
- Michael L. Hostbaek
mich@freebsdcluster.org