Searched refs:sph (Results 1 – 3 of 3) sorted by relevance
55 sctp_parm_hdr_t *sph; in sctp_supaddr_param() local59 sph = (sctp_parm_hdr_t *)p; in sctp_supaddr_param()60 sph->sph_type = htons(PARM_SUPP_ADDRS); in sctp_supaddr_param()61 addrtype = (uint16_t *)(sph + 1); in sctp_supaddr_param()66 sph->sph_len = htons(sizeof (*sph) + sizeof (*addrtype)); in sctp_supaddr_param()72 sph->sph_len = htons(sizeof (*sph) + in sctp_supaddr_param()76 sph->sph_len = htons(sizeof (*sph) + in sctp_supaddr_param()83 return (sizeof (*sph) + (sizeof (*addrtype) * 2)); in sctp_supaddr_param()110 sctp_parm_hdr_t *sph = (sctp_parm_hdr_t *)p; in sctp_options_param() local114 sph->sph_type = htons(PARM_FORWARD_TSN); in sctp_options_param()[all …]
907 sctp_find_al_ind(sctp_parm_hdr_t *sph, ssize_t len, uint32_t *adaptation_code) in sctp_find_al_ind() argument910 if (len < sizeof (*sph)) in sctp_find_al_ind()912 while (sph != NULL) { in sctp_find_al_ind()913 if (sph->sph_type == htons(PARM_ADAPT_LAYER_IND) && in sctp_find_al_ind()914 ntohs(sph->sph_len) >= (sizeof (*sph) + in sctp_find_al_ind()916 *adaptation_code = *(uint32_t *)(sph + 1); in sctp_find_al_ind()919 sph = sctp_next_parm(sph, &len); in sctp_find_al_ind()
960 ipsec_copy_polhead(ipsec_policy_head_t *sph, ipsec_policy_head_t *dph, in ipsec_copy_polhead() argument969 rw_enter(&sph->iph_lock, RW_READER); in ipsec_copy_polhead()973 ipsec_policy_root_t *spr = &sph->iph_root[dir]; in ipsec_copy_polhead()994 rw_exit(&sph->iph_lock); in ipsec_copy_polhead()1000 rw_exit(&sph->iph_lock); in ipsec_copy_polhead()