diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-05-14 17:33:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-05-14 17:33:37 +0000 |
commit | 372bfcac7303b226cfb376ff6a4bdda0eab09419 (patch) | |
tree | 7e819f7786f598282619ff068bc8b1d46ca2f4ba /nss | |
parent | f05ac8f5030a8173b4eec5d73505cfd81d415a96 (diff) | |
download | glibc-372bfcac7303b226cfb376ff6a4bdda0eab09419.zip glibc-372bfcac7303b226cfb376ff6a4bdda0eab09419.tar.gz glibc-372bfcac7303b226cfb376ff6a4bdda0eab09419.tar.bz2 |
* sysdeps/posix/getaddrinfo.c: Implement handling of DCCP and
UDPlite.
* nss/getent.c (ahosts_keys_int): Handle all known socket types.
* inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
* sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
Diffstat (limited to 'nss')
-rw-r--r-- | nss/getent.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nss/getent.c b/nss/getent.c index 28c6dce..c8173d0 100644 --- a/nss/getent.c +++ b/nss/getent.c @@ -337,6 +337,22 @@ ahosts_keys_int (int af, int xflags, int number, char *key[]) sockstr = "DGRAM"; else if (runp->ai_socktype == SOCK_RAW) sockstr = "RAW"; +#ifdef SOCK_SEQPACKET + else if (runp->ai_socktype == SOCK_SEQPACKET) + sockstr = "SEQPACKET"; +#endif +#ifdef SOCK_RDM + else if (runp->ai_socktype == SOCK_RDM) + sockstr = "RDM"; +#endif +#ifdef SOCK_DCCP + else if (runp->ai_socktype == SOCK_DCCP) + sockstr = "DCCP"; +#endif +#ifdef SOCK_PACKET + else if (runp->ai_socktype == SOCK_PACKET) + sockstr = "PACKET"; +#endif else { snprintf (sockbuf, sizeof (sockbuf), "%d", |