summary refs log tree commit diff
path: root/sysdeps/posix
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 /sysdeps/posix
parent372bfcac7303b226cfb376ff6a4bdda0eab09419 (diff)
downloadglibc-18a74157a6048c4ff7156b9f45ca9e19c114dc4f.tar.gz
glibc-18a74157a6048c4ff7156b9f45ca9e19c114dc4f.tar.xz
glibc-18a74157a6048c4ff7156b9f45ca9e19c114dc4f.zip
* sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
	and SCTP.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/getaddrinfo.c4
1 files changed, 4 insertions, 0 deletions
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, "" }
 };