View | Details | Raw Unified | Return to bug 180259
Collapse All | Expand All

(-)./Makefile (-1 / +2 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	flowgrind
4
PORTNAME=	flowgrind
5
PORTVERSION=	0.6.0
5
PORTVERSION=	0.6.0
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	benchmarks
7
CATEGORIES=	benchmarks
8
MASTER_SITES=	https://launchpad.net/flowgrind/trunk/${PORTNAME}-0.6/+download/
8
MASTER_SITES=	https://launchpad.net/flowgrind/trunk/${PORTNAME}-0.6/+download/
9
9
Lines 16-21 Link Here
16
16
17
USE_BZIP2=	yes
17
USE_BZIP2=	yes
18
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
19
CONFIGURE_ARGS=	--enable-debug
19
FETCH_ARGS=	-pRr
20
FETCH_ARGS=	-pRr
20
21
21
MAN1=		flowgrind-stop.1 \
22
MAN1=		flowgrind-stop.1 \
(-)./files/patch-flowgrind (+29 lines)
Line 0 Link Here
1
--- src/flowgrind.c
2
+++ src/flowgrind.c
3
@@ -1872,7 +1872,7 @@ static void parse_flow_option(int ch, char* optarg, int current_flow_ids[]) {
4
 
5
 					if (extra_rpc) {
6
 						/* Now it's getting tricky... */
7
-						/* 1st case: IPv6 with port, e.g. "[a:b::c]a:5999"  */
8
+						/* 1st case: IPv6 with port, e.g. "[a:b::c]:5999"  */
9
 						if ((sepptr = strchr(rpc_address, ']'))) {
10
 						    is_ipv6 = 1;
11
 							*sepptr = '\0';
12
@@ -1884,7 +1884,7 @@ static void parse_flow_option(int ch, char* optarg, int current_flow_ids[]) {
13
 							port = atoi(sepptr);
14
 						} else if ((sepptr = strchr(rpc_address, ':'))) {
15
 							/* 2nd case: IPv6 without port, e.g. "a:b::c"  */
16
-							if (strchr(sepptr, ':')) {
17
+							if (strchr(sepptr+1, ':')) {
18
 								is_ipv6 = 1;
19
 							} else {
20
 							/* 3rd case: IPv4 or name with port 1.2.3.4:5999*/
21
@@ -1910,7 +1910,7 @@ static void parse_flow_option(int ch, char* optarg, int current_flow_ids[]) {
22
 						fprintf(stderr, "No test host given in argument\n");
23
 						usage();
24
 					}
25
-				    if (is_ipv6)
26
+					if (is_ipv6)
27
 						sprintf(url, "http://[%s]:%d/RPC2", rpc_address, port);
28
 					else
29
 						sprintf(url, "http://%s:%d/RPC2", rpc_address, port);

Return to bug 180259