about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--support/support_format_address_family.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 646dd79d30..09e9001a03 100644
--- 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.
diff --git a/support/support_format_address_family.c b/support/support_format_address_family.c
index cc3fb868a0..8f439d5fc4 100644
--- a/support/support_format_address_family.c
+++ b/support/support_format_address_family.c
@@ -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);
     }