View | Details | Raw Unified
Collapse All | Expand All

(-) iputils/tracepath.c.orig (-3 / +3 lines)
 Lines 76-82    Link Here 
	int progress = -1;
	int progress = -1;
	int broken_router;
	int broken_router;
	
	
restart:
       while (1) {
	memset(&rcvbuf, -1, sizeof(rcvbuf));
	memset(&rcvbuf, -1, sizeof(rcvbuf));
	iov.iov_base = &rcvbuf;
	iov.iov_base = &rcvbuf;
	iov.iov_len = sizeof(rcvbuf);
	iov.iov_len = sizeof(rcvbuf);
 Lines 93-99    Link Here 
	if (res < 0) {
	if (res < 0) {
		if (errno == EAGAIN)
		if (errno == EAGAIN)
			return progress;
			return progress;
		goto restart;
		continue;
	}
	}
	progress = mtu;
	progress = mtu;
 Lines 216-222    Link Here 
		perror("NET ERROR");
		perror("NET ERROR");
		return 0;
		return 0;
	}
	}
	goto restart;
       }
}
}
int probe_ttl(int fd, int ttl)
int probe_ttl(int fd, int ttl)