You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/fping/files/fping-4.2-fping6-6.patch

22 lines
688 B

From 6fd4f8bd91abc43f80078bdd0084cb6d2b1de7f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johan=20Str=C3=B6m?= <johan@stromnet.se>
Date: Tue, 25 Jun 2019 14:03:14 +0200
Subject: [PATCH] Do not fail if using fping6 with -6 flag
Mostly for backwards compatability
---
src/fping.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/fping.c
+++ b/src/fping.c
@@ -435,7 +435,7 @@
break;
case '6':
#ifdef IPV6
- if (hints_ai_family != AF_UNSPEC) {
+ if (hints_ai_family != AF_UNSPEC && hints_ai_family != AF_INET6) {
fprintf(stderr, "%s: can't specify both -4 and -6\n", prog);
exit(1);
}