git: inet: return EHOSTDOWN if we cannot resolve an address in time

Roy Marples roy at crater.dragonflybsd.org
Mon Sep 9 09:59:52 PDT 2019


commit e8e02c5adb4291042d35bd3d33f7afc15ebf05a7
Author: Roy Marples <roy at marples.name>
Date:   Mon Sep 9 17:48:11 2019 +0100

    inet: return EHOSTDOWN if we cannot resolve an address in time
    
    This allows programs to make informed decisions about what to do
    if anything goes wrong trying to resolve the address.
    
    For example, ping(8) now reports sendto: Host is down, which is
    more useful than not reporting anything.
    
    Taken-from: NetBSD

Summary of changes:
 sys/net/if_ethersubr.c |  5 +++--
 sys/netinet/if_ether.c | 36 +++++++++++++++++++++++++++---------
 2 files changed, 30 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e8e02c5adb4291042d35bd3d33f7afc15ebf05a7


-- 
DragonFly BSD source repository


More information about the Commits mailing list