FreeBSD Bugzilla – Attachment 256410 Details for
Bug 283648
net/fping: update to 5.3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to update fping to 5.3
fp53.patch (text/plain), 2.50 KB, created by
Andre Albsmeier
on 2025-01-04 12:17:07 UTC
(
hide
)
Description:
patch to update fping to 5.3
Filename:
MIME Type:
Creator:
Andre Albsmeier
Created:
2025-01-04 12:17:07 UTC
Size:
2.50 KB
patch
obsolete
>diff --color=auto -ru net/fping.OLD/Makefile net/fping/Makefile >--- net/fping.OLD/Makefile 2024-01-30 07:20:27.494571000 +0100 >+++ net/fping/Makefile 2025-01-04 12:57:25.635292000 +0100 >@@ -1,6 +1,5 @@ > PORTNAME= fping >-PORTVERSION= 5.0 >-PORTREVISION= 3 >+DISTVERSION= 5.3 > CATEGORIES= net > MASTER_SITES= http://fping.org/dist/ \ > https://github.com/schweikert/${PORTNAME}/releases/download/v${PORTVERSION}/ >diff --color=auto -ru net/fping.OLD/distinfo net/fping/distinfo >--- net/fping.OLD/distinfo 2023-12-26 10:59:51.488507000 +0100 >+++ net/fping/distinfo 2025-01-04 12:57:31.545949000 +0100 >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1597788763 >-SHA256 (fping-5.0.tar.gz) = ed38c0b9b64686a05d1b3bc1d66066114a492e04e44eef1821d43b1263cd57b8 >-SIZE (fping-5.0.tar.gz) = 185281 >+TIMESTAMP = 1735991851 >+SHA256 (fping-5.3.tar.gz) = d57bd0141aea082e3adfc198bfc3db5dfd12a7014c7c2655e97f61cd54901d0e >+SIZE (fping-5.3.tar.gz) = 197370 >diff --color=auto -ru net/fping.OLD/files/patch-fping.c net/fping/files/patch-fping.c >--- net/fping.OLD/files/patch-fping.c 2023-12-26 11:00:41.770494000 +0100 >+++ net/fping/files/patch-fping.c 2025-01-04 13:07:34.282561000 +0100 >@@ -1,39 +0,0 @@ >---- src/fping.c.orig 2020-08-05 11:10:13 UTC >-+++ src/fping.c >-@@ -1060,11 +1060,11 @@ int main(int argc, char** argv) >- exit(num_noaddress ? 2 : 1); >- } >- >-- if (socket4 >= 0) { >-+ if (src_addr_set && socket4 >= 0) { >- socket_set_src_addr_ipv4(socket4, &src_addr, (socktype4 == SOCK_DGRAM) ? &ident4 : NULL); >- } >- #ifdef IPV6 >-- if (socket6 >= 0) { >-+ if (src_addr6_set && socket6 >= 0) { >- socket_set_src_addr_ipv6(socket6, &src_addr6, (socktype6 == SOCK_DGRAM) ? &ident6 : NULL); >- } >- #endif >-@@ -2299,6 +2299,22 @@ int wait_for_reply(int64_t wait_time) >- #endif >- else { >- return 1; >-+ } >-+ >-+ /* Check that src address is one of the hosts we pinged before */ >-+ int found = 0; >-+ for (int i = 0; i < num_hosts; i++) { >-+ HOST_ENTRY *h = table[i]; >-+ if (!addr_cmp((struct sockaddr*)&response_addr, (struct sockaddr*)&h->saddr)) { >-+ found = 1; >-+ break; >-+ } >-+ } >-+ if (!found) { >-+ // char buf[INET6_ADDRSTRLEN]; >-+ // getnameinfo((struct sockaddr*)&response_addr, sizeof(response_addr), buf, INET6_ADDRSTRLEN, NULL, 0, NI_NUMERICHOST); >-+ // fprintf(stderr, "ignoring response from %s\n", buf); >-+ return 1; /* packet received, but not from a host we pinged */ >- } >- >- seqmap_value = seqmap_fetch(seq, current_time_ns);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 283648
:
256187
|
256251
| 256410