Home
last modified time | relevance | path

Searched refs:hdrs_len (Results 1 – 2 of 2) sorted by relevance

/titanic_50/usr/src/uts/common/inet/sctp/
H A Dsctp_common.c920 uint_t hdrs_len; in sctp_build_hdrs() local
941 hdrs_len = ip_hdr_length + ulp_hdr_length; in sctp_build_hdrs()
942 ASSERT(hdrs_len != 0); in sctp_build_hdrs()
944 if (hdrs_len != sctp->sctp_iphc_len) { in sctp_build_hdrs()
946 hdrs = kmem_alloc(hdrs_len, sleep); in sctp_build_hdrs()
953 sctp->sctp_iphc_len = hdrs_len; in sctp_build_hdrs()
973 ipha->ipha_length = htons(hdrs_len); in sctp_build_hdrs()
981 hdrs_len = ip_hdr_length + ulp_hdr_length; in sctp_build_hdrs()
982 ASSERT(hdrs_len != 0); in sctp_build_hdrs()
984 if (hdrs_len != sctp->sctp_iphc6_len) { in sctp_build_hdrs()
[all …]
/titanic_50/usr/src/uts/common/inet/ip/
H A Dconn_opt.c2198 uint_t hdrs_len; in conn_build_hdr_template() local
2213 hdrs_len = ip_hdr_length + ulp_hdr_length + extra; in conn_build_hdr_template()
2214 ASSERT(hdrs_len != 0); in conn_build_hdr_template()
2216 if (hdrs_len != connp->conn_ht_iphc_allocated) { in conn_build_hdr_template()
2218 hdrs = kmem_alloc(hdrs_len, KM_NOSLEEP); in conn_build_hdr_template()
2227 connp->conn_ht_iphc_allocated = hdrs_len; in conn_build_hdr_template()
2231 hdrs_len -= extra; in conn_build_hdr_template()
2232 connp->conn_ht_iphc_len = hdrs_len; in conn_build_hdr_template()
2243 ipha->ipha_length = htons(hdrs_len); in conn_build_hdr_template()
2262 ip6h->ip6_plen = htons(hdrs_len - IPV6_HDR_LEN); in conn_build_hdr_template()
[all …]