Print this page
tcp: conn_mlp_type will be set later in tcp_init_values


2682                 connp->conn_ipversion = IPV4_VERSION;
2683                 connp->conn_family = AF_INET;
2684                 tcp->tcp_mss = tcps->tcps_mss_def_ipv4;
2685                 connp->conn_default_ttl = tcps->tcps_ipv4_ttl;
2686         }
2687         connp->conn_xmit_ipp.ipp_unicast_hops = connp->conn_default_ttl;
2688 
2689         crhold(credp);
2690         connp->conn_cred = credp;
2691         connp->conn_cpid = curproc->p_pid;
2692         connp->conn_open_time = ddi_get_lbolt64();
2693 
2694         /* Cache things in the ixa without any refhold */
2695         ASSERT(!(connp->conn_ixa->ixa_free_flags & IXA_FREE_CRED));
2696         connp->conn_ixa->ixa_cred = credp;
2697         connp->conn_ixa->ixa_cpid = connp->conn_cpid;
2698 
2699         connp->conn_zoneid = zoneid;
2700         /* conn_allzones can not be set this early, hence no IPCL_ZONEID */
2701         connp->conn_ixa->ixa_zoneid = zoneid;
2702         connp->conn_mlp_type = mlptSingle;
2703         ASSERT(connp->conn_netstack == tcps->tcps_netstack);
2704         ASSERT(tcp->tcp_tcps == tcps);
2705 
2706         /*
2707          * If the caller has the process-wide flag set, then default to MAC
2708          * exempt mode.  This allows read-down to unlabeled hosts.
2709          */
2710         if (getpflags(NET_MAC_AWARE, credp) != 0)
2711                 connp->conn_mac_mode = CONN_MAC_AWARE;
2712 
2713         connp->conn_zone_is_global = (crgetzoneid(credp) == GLOBAL_ZONEID);
2714 
2715         if (issocket) {
2716                 tcp->tcp_issocket = 1;
2717         }
2718 
2719         connp->conn_rcvbuf = tcps->tcps_recv_hiwat;
2720         connp->conn_sndbuf = tcps->tcps_xmit_hiwat;
2721         connp->conn_sndlowat = tcps->tcps_xmit_lowat;
2722         connp->conn_so_type = SOCK_STREAM;




2682                 connp->conn_ipversion = IPV4_VERSION;
2683                 connp->conn_family = AF_INET;
2684                 tcp->tcp_mss = tcps->tcps_mss_def_ipv4;
2685                 connp->conn_default_ttl = tcps->tcps_ipv4_ttl;
2686         }
2687         connp->conn_xmit_ipp.ipp_unicast_hops = connp->conn_default_ttl;
2688 
2689         crhold(credp);
2690         connp->conn_cred = credp;
2691         connp->conn_cpid = curproc->p_pid;
2692         connp->conn_open_time = ddi_get_lbolt64();
2693 
2694         /* Cache things in the ixa without any refhold */
2695         ASSERT(!(connp->conn_ixa->ixa_free_flags & IXA_FREE_CRED));
2696         connp->conn_ixa->ixa_cred = credp;
2697         connp->conn_ixa->ixa_cpid = connp->conn_cpid;
2698 
2699         connp->conn_zoneid = zoneid;
2700         /* conn_allzones can not be set this early, hence no IPCL_ZONEID */
2701         connp->conn_ixa->ixa_zoneid = zoneid;

2702         ASSERT(connp->conn_netstack == tcps->tcps_netstack);
2703         ASSERT(tcp->tcp_tcps == tcps);
2704 
2705         /*
2706          * If the caller has the process-wide flag set, then default to MAC
2707          * exempt mode.  This allows read-down to unlabeled hosts.
2708          */
2709         if (getpflags(NET_MAC_AWARE, credp) != 0)
2710                 connp->conn_mac_mode = CONN_MAC_AWARE;
2711 
2712         connp->conn_zone_is_global = (crgetzoneid(credp) == GLOBAL_ZONEID);
2713 
2714         if (issocket) {
2715                 tcp->tcp_issocket = 1;
2716         }
2717 
2718         connp->conn_rcvbuf = tcps->tcps_recv_hiwat;
2719         connp->conn_sndbuf = tcps->tcps_xmit_hiwat;
2720         connp->conn_sndlowat = tcps->tcps_xmit_lowat;
2721         connp->conn_so_type = SOCK_STREAM;