about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-05-14 17:55:57 +0000
committerUlrich Drepper <drepper@redhat.com>2008-05-14 17:55:57 +0000
commit18a74157a6048c4ff7156b9f45ca9e19c114dc4f (patch)
tree156ae1d1027e585cef0b1d2902cd42acbda7fb46
parent372bfcac7303b226cfb376ff6a4bdda0eab09419 (diff)
downloadglibc-18a74157a6048c4ff7156b9f45ca9e19c114dc4f.tar.gz
glibc-18a74157a6048c4ff7156b9f45ca9e19c114dc4f.tar.xz
glibc-18a74157a6048c4ff7156b9f45ca9e19c114dc4f.zip
* sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
	and SCTP.
-rw-r--r--ChangeLog4
-rw-r--r--NEWS5
-rw-r--r--sysdeps/posix/getaddrinfo.c4
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c2745c2858..aa1cbdcab8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
 
-	* sysdeps/posix/getaddrinfo.c: Implement handling of DCCP and
-	UDPlite.
+	* sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
+	and SCTP.
 
 	* nss/getent.c (ahosts_keys_int): Handle all known socket types.
 
diff --git a/NEWS b/NEWS
index 38a2193d67..7d2e7590ed 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes.  2008-5-12
+GNU C Library NEWS -- history of user-visible changes.  2008-5-14
 Copyright (C) 1992-2007, 2008 Free Software Foundation, Inc.
 See the end for copying conditions.
 
@@ -12,6 +12,9 @@ Version 2.9
 
 * TLS descriptors for LD and GD on x86 and x86-64.
   Implemented by Alexandre Oliva.
+
+* getaddrinfo now handles DCCP and UDPlite.
+  Implemented by Ulrich Drepper.
 
 Version 2.8
 
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 7548ddf6f0..0ae43938f8 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -117,6 +117,10 @@ static const struct gaih_typeproto gaih_inet_typeproto[] =
 #ifdef IPPROTO_UDPLITE
   { SOCK_DGRAM, IPPROTO_UDPLITE, 0, false, "udplite" },
 #endif
+#ifdef IPPROTO_SCTP
+  { SOCK_STREAM, IPPROTO_SCTP, 0, false, "sctp" },
+  { SOCK_SEQPACKET, IPPROTO_SCTP, 0, false, "sctp" },
+#endif
   { SOCK_RAW, 0, GAI_PROTO_PROTOANY|GAI_PROTO_NOSERVICE, true, "raw" },
   { 0, 0, 0, false, "" }
 };