diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-02-01 14:04:02 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-02-01 14:15:50 +0100 |
commit | baef19438741905fde4e740ee8f3fcf856d4e820 (patch) | |
tree | 1a2103d209c9cfc567f88ad8bf5e681160072bec | |
parent | 395599f0cf5168e821eed2a3451b18344ae7b5bd (diff) | |
download | glibc-baef19438741905fde4e740ee8f3fcf856d4e820.tar.gz glibc-baef19438741905fde4e740ee8f3fcf856d4e820.tar.xz glibc-baef19438741905fde4e740ee8f3fcf856d4e820.zip |
support: Handle AF_LOCAL, AF_UNSPEC in support_format_address_family
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | support/support_format_address_family.c | 4 |
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); } |