(ahosts_keys_int): Handle all known socket types.
authordrepper <drepper>
Wed, 14 May 2008 17:32:54 +0000 (17:32 +0000)
committerdrepper <drepper>
Wed, 14 May 2008 17:32:54 +0000 (17:32 +0000)
nss/getent.c

index 28c6dce..c8173d0 100644 (file)
@@ -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",