FreeBSD Bugzilla – Attachment 215039 Details for
Bug 246855
net/liboping: Make error handling *BSD friendly (EHOSTDOWN)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add BSD friendly error handler
net_liboping.diff (text/plain), 921 bytes, created by
Chris Hutchinson
on 2020-05-30 05:21:37 UTC
(
hide
)
Description:
add BSD friendly error handler
Filename:
MIME Type:
Creator:
Chris Hutchinson
Created:
2020-05-30 05:21:37 UTC
Size:
921 bytes
patch
obsolete
>Index: liboping/Makefile >=================================================================== >--- liboping/Makefile (revision 533164) >+++ liboping/Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= liboping > PORTVERSION= 1.8.0 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= net > MASTER_SITES= http://noping.cc/files/ > >Index: liboping/files/patch-src_liboping.c >=================================================================== >--- liboping/files/patch-src_liboping.c (nonexistent) >+++ liboping/files/patch-src_liboping.c (working copy) >@@ -0,0 +1,14 @@ >+--- src/liboping.c.orig 2020-05-29 20:17:55.814776000 -0700 >++++ src/liboping.c 2020-05-29 20:19:49.588497000 -0700 >+@@ -801,6 +801,11 @@ >+ if (errno == ENETUNREACH) >+ return (0); >+ #endif >++ /* BSDs return EHOSTDOWN on ARP/ND failure */ >++#if defined(EHOSTDOWN) >++ if (errno == EHOSTDOWN) >++ return (0); >++#endif >+ ping_set_errno (obj, errno); >+ } >+
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
Flags:
portmaster
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 246855
: 215039 |
215069