Print this page
%B

@@ -52,16 +52,20 @@
 static int      tcp_bind(sock_lower_handle_t, struct sockaddr *,
                     socklen_t, cred_t *);
 static int      tcp_listen(sock_lower_handle_t, int, cred_t *);
 static int      tcp_connect(sock_lower_handle_t, const struct sockaddr *,
                     socklen_t, sock_connid_t *, cred_t *);
+static int      tcp_getpeername(sock_lower_handle_t, struct sockaddr *,
+                    socklen_t *, cred_t *);
+static int      tcp_getsockname(sock_lower_handle_t, struct sockaddr *,
+                    socklen_t *, cred_t *);
 static int      tcp_getsockopt(sock_lower_handle_t, int, int, void *,
                     socklen_t *, cred_t *);
 static int      tcp_setsockopt(sock_lower_handle_t, int, int, const void *,
                     socklen_t, cred_t *);
 static int      tcp_sendmsg(sock_lower_handle_t, mblk_t *, struct nmsghdr *,
-                    cred_t *cr);
+                    cred_t *);
 static int      tcp_shutdown(sock_lower_handle_t, int, cred_t *);
 static void     tcp_clr_flowctrl(sock_lower_handle_t);
 static int      tcp_ioctl(sock_lower_handle_t, int, intptr_t, int, int32_t *,
                     cred_t *);
 static int      tcp_close(sock_lower_handle_t, int, cred_t *);

@@ -750,10 +754,11 @@
 tcp_create(int family, int type, int proto, sock_downcalls_t **sock_downcalls,
     uint_t *smodep, int *errorp, int flags, cred_t *credp)
 {
         conn_t          *connp;
         boolean_t       isv6 = family == AF_INET6;
+
         if (type != SOCK_STREAM || (family != AF_INET && family != AF_INET6) ||
             (proto != 0 && proto != IPPROTO_TCP)) {
                 *errorp = EPROTONOSUPPORT;
                 return (NULL);
         }

@@ -763,12 +768,12 @@
                 return (NULL);
         }
 
         /*
          * Put the ref for TCP. Ref for IP was already put
-         * by ipcl_conn_create. Also Make the conn_t globally
-         * visible to walkers
+         * by ipcl_conn_create. Also make the conn_t globally
+         * visible to walkers.
          */
         mutex_enter(&connp->conn_lock);
         CONN_INC_REF_LOCKED(connp);
         ASSERT(connp->conn_ref == 2);
         connp->conn_state_flags &= ~CONN_INCIPIENT;