Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2002 02:40:05 -0700 (PDT)
From:      Michael Hostbaek <mich@freebsdcluster.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/40345: New port: net/cdpr
Message-ID:  <200207100940.g6A9e5g8011314@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/40345; it has been noted by GNATS.

From: Michael Hostbaek <mich@freebsdcluster.org>
To: e0025974@student.tuwien.ac.at
Cc: freebsd-gnats-submit@freebsd.org, ports@freebsd.org
Subject: Re: ports/40345: New port: net/cdpr
Date: Wed, 10 Jul 2002 11:37:02 +0200

 --UugvWAfsgieZRqgk
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 OK.. I have patched it up - and it should work now. Audit trail
 attached.
 
 /mich
 
 Tilman Linneweh (tilman) writes:
 > >>Synopsis:       New port: net/cdpr
 > 
 > On my STABLE machine this program wasn't able to display any CDP
 > Packets, ethereal catched. Are you sure this does work?
 > 
 > regards
 > arved
 
 -- 
 Best Regards,
 	Michael Landin Hostbaek 
 	FreeBSDCluster.org - an International Community
 
 	*/ PGP-key available upon request /*
 
 --UugvWAfsgieZRqgk
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="port-cdpr.diff"
 
 diff -u -ruN cdpr.bak/files/patch-aa cdpr/files/patch-aa
 --- cdpr.bak/files/patch-aa	Thu Jan  1 01:00:00 1970
 +++ cdpr/files/patch-aa	Wed Jul 10 11:36:50 2002
 @@ -0,0 +1,14 @@
 +--- 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)
 diff -u -ruN cdpr.bak/files/patch-ab cdpr/files/patch-ab
 --- cdpr.bak/files/patch-ab	Thu Jan  1 01:00:00 1970
 +++ cdpr/files/patch-ab	Wed Jul 10 11:36:50 2002
 @@ -0,0 +1,11 @@
 +--- 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);
 
 --UugvWAfsgieZRqgk--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207100940.g6A9e5g8011314>