Lines Matching refs:PFKEY_ALIGN8
656 static_assert(PFKEY_ALIGN8(sizeof(struct sadb_msg)) <= _MHLEN); in key_init()
2232 PFKEY_ALIGN8(sizeof(*xisr) in key_sp2msg()
2274 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_gather_mbuf()
2711 mpolicy = m_pulldown(n, PFKEY_ALIGN8(sizeof(struct sadb_msg)), in key_spdadd()
2978 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spddelete2()
3000 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spddelete2()
3332 if (m->m_len != PFKEY_ALIGN8(sizeof(struct sadb_msg))) { in key_spdflush()
3353 m->m_pkthdr.len = m->m_len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spdflush()
3591 tlen += PFKEY_ALIGN8(len); in key_getspreqmsglen()
3632 len = PFKEY_ALIGN8(sizeof(*lt)) * 2; in key_spdexpire()
4395 const size_t max_length = PFKEY_ALIGN8(sizeof(*key0)) + in key_setsaval()
4396 PFKEY_ALIGN8(IPSEC_KEY_AUTH_MAX_BYTES); in key_setsaval()
4408 if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) && in key_setsaval()
4434 const size_t max_length = PFKEY_ALIGN8(sizeof(*key0)) + in key_setsaval()
4435 PFKEY_ALIGN8(IPSEC_KEY_ENCRYPT_MAX_BYTES); in key_setsaval()
4446 if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) && in key_setsaval()
4936 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_setsadbmsg()
4980 len = PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_setsadbsa()
5018 len = PFKEY_ALIGN8(sizeof(struct sadb_address)) + in key_setsadbaddr()
5019 PFKEY_ALIGN8(saddr->sa_len); in key_setsadbaddr()
5055 mtod(m, caddr_t) + PFKEY_ALIGN8(sizeof(struct sadb_address)), in key_setsadbaddr()
5106 len = PFKEY_ALIGN8(sizeof(struct sadb_x_ipsecif)); in key_setsadbipsecif()
5146 len = PFKEY_ALIGN8(sizeof(*p)); in key_setsadbsession_id()
5183 len = PFKEY_ALIGN8(sizeof(*p)) + PFKEY_ALIGN8(list_len); in key_setsadbsastat()
5206 mtod(m, caddr_t) + PFKEY_ALIGN8(sizeof(*p)), in key_setsadbsastat()
5227 len = PFKEY_ALIGN8(sizeof(struct sadb_x_sa2)); in key_setsadbxsa2()
5264 len = PFKEY_ALIGN8(sizeof(struct sadb_x_policy)); in key_setsadbxpolicy()
5296 len = PFKEY_ALIGN8(sizeof(struct sadb_lifetime)); in key_setsalifecurr()
6698 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)) + in key_getspi()
6699 PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_getspi()
6721 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_getspi()
6724 memset(m_sa, 0, PFKEY_ALIGN8(sizeof(struct sadb_sa))); in key_getspi()
6728 off += PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_getspi()
7919 const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb)); in key_getcomb_esp()
8010 const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb)); in key_getcomb_ah()
8075 const int l = PFKEY_ALIGN8(sizeof(struct sadb_prop)); in key_getprop()
8622 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_register()
8629 off += PFKEY_ALIGN8(sizeof(*sup)); in key_register()
8644 off += PFKEY_ALIGN8(sizeof(*alg)); in key_register()
8654 off += PFKEY_ALIGN8(sizeof(*sup)); in key_register()
8679 off += PFKEY_ALIGN8(sizeof(struct sadb_alg)); in key_register()
8819 len = PFKEY_ALIGN8(sizeof(*lt)) * 2; in key_expire()
9172 m_adj(m, PFKEY_ALIGN8(sizeof(struct sadb_msg))); in key_promisc()
9793 baselen = PFKEY_ALIGN8(sizeof(struct sadb_address)); in key_validate_ext()
9800 baselen = PFKEY_ALIGN8(sizeof(struct sadb_ident)); in key_validate_ext()
9821 if (baselen + PFKEY_ALIGN8(sa->sa_len) != len) { in key_validate_ext()