support: Handle AF_LOCAL, AF_UNSPEC in support_format_address_family
authorFlorian Weimer <fweimer@redhat.com>
Fri, 1 Feb 2019 13:04:02 +0000 (14:04 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 1 Feb 2019 13:15:50 +0000 (14:15 +0100)
ChangeLog
support/support_format_address_family.c

index 646dd79..09e9001 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2019-02-01  Florian Weimer  <fweimer@redhat.com>
 
+       * support/support_format_address_family.c
+       (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
+
+2019-02-01  Florian Weimer  <fweimer@redhat.com>
+
        * manual/socket.texi (Internet Address Formats): Clarify the byte
        order of struct sockaddr_in, struct sockaddr_in6.  Document
        sin6_flowinfo and sin6_scope_id.
index cc3fb86..8f439d5 100644 (file)
@@ -29,6 +29,10 @@ support_format_address_family (int family)
       return xstrdup ("INET");
     case AF_INET6:
       return xstrdup ("INET6");
+    case AF_LOCAL:
+      return xstrdup ("LOCAL");
+    case AF_UNSPEC:
+      return xstrdup ("UNSPEC");
     default:
       return xasprintf ("<unknown address family %d>", family);
     }