Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 80969 | Differences between
and this patch

Collapse All | Expand All

(-)iputils/tracepath.c.orig (-3 / +3 lines)
Lines 76-82 Link Here
76
	int progress = -1;
76
	int progress = -1;
77
	int broken_router;
77
	int broken_router;
78
	
78
	
79
restart:
79
       while (1) {
80
	memset(&rcvbuf, -1, sizeof(rcvbuf));
80
	memset(&rcvbuf, -1, sizeof(rcvbuf));
81
	iov.iov_base = &rcvbuf;
81
	iov.iov_base = &rcvbuf;
82
	iov.iov_len = sizeof(rcvbuf);
82
	iov.iov_len = sizeof(rcvbuf);
Lines 93-99 Link Here
93
	if (res < 0) {
93
	if (res < 0) {
94
		if (errno == EAGAIN)
94
		if (errno == EAGAIN)
95
			return progress;
95
			return progress;
96
		goto restart;
96
		continue;
97
	}
97
	}
98
98
99
	progress = mtu;
99
	progress = mtu;
Lines 216-222 Link Here
216
		perror("NET ERROR");
216
		perror("NET ERROR");
217
		return 0;
217
		return 0;
218
	}
218
	}
219
	goto restart;
219
       }
220
}
220
}
221
221
222
int probe_ttl(int fd, int ttl)
222
int probe_ttl(int fd, int ttl)

Return to bug 80969