Lines Matching refs:PFKEY_ALIGN8

537 	_CASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) <= _MHLEN);  in key_init()
2226 PFKEY_ALIGN8(sizeof(*xisr) in key_sp2msg()
2264 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_gather_mbuf()
2677 mpolicy = m_pulldown(n, PFKEY_ALIGN8(sizeof(struct sadb_msg)), in key_spdadd()
2938 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spddelete2()
2960 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spddelete2()
3292 if (m->m_len != PFKEY_ALIGN8(sizeof(struct sadb_msg))) { in key_spdflush()
3313 m->m_pkthdr.len = m->m_len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spdflush()
3551 tlen += PFKEY_ALIGN8(len); in key_getspreqmsglen()
3592 len = PFKEY_ALIGN8(sizeof(*lt)) * 2; in key_spdexpire()
4359 const size_t max_length = PFKEY_ALIGN8(sizeof(*key0)) + in key_setsaval()
4360 PFKEY_ALIGN8(IPSEC_KEY_AUTH_MAX_BYTES); in key_setsaval()
4372 if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) && in key_setsaval()
4397 const size_t max_length = PFKEY_ALIGN8(sizeof(*key0)) + in key_setsaval()
4398 PFKEY_ALIGN8(IPSEC_KEY_ENCRYPT_MAX_BYTES); in key_setsaval()
4409 if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) && in key_setsaval()
4877 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_setsadbmsg()
4921 len = PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_setsadbsa()
4959 len = PFKEY_ALIGN8(sizeof(struct sadb_address)) + in key_setsadbaddr()
4960 PFKEY_ALIGN8(saddr->sa_len); in key_setsadbaddr()
4996 mtod(m, caddr_t) + PFKEY_ALIGN8(sizeof(struct sadb_address)), in key_setsadbaddr()
5012 len = PFKEY_ALIGN8(sizeof(struct sadb_x_ipsecif)); in key_setsadbipsecif()
5052 len = PFKEY_ALIGN8(sizeof(*p)); in key_setsadbsession_id()
5089 len = PFKEY_ALIGN8(sizeof(*p)) + PFKEY_ALIGN8(list_len); in key_setsadbsastat()
5112 mtod(m, caddr_t) + PFKEY_ALIGN8(sizeof(*p)), in key_setsadbsastat()
5133 len = PFKEY_ALIGN8(sizeof(struct sadb_x_sa2)); in key_setsadbxsa2()
5170 len = PFKEY_ALIGN8(sizeof(struct sadb_x_policy)); in key_setsadbxpolicy()
6562 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)) + in key_getspi()
6563 PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_getspi()
6585 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_getspi()
6588 memset(m_sa, 0, PFKEY_ALIGN8(sizeof(struct sadb_sa))); in key_getspi()
6592 off += PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_getspi()
7772 const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb)); in key_getcomb_esp()
7863 const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb)); in key_getcomb_ah()
7928 const int l = PFKEY_ALIGN8(sizeof(struct sadb_prop)); in key_getprop()
8481 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_register()
8488 off += PFKEY_ALIGN8(sizeof(*sup)); in key_register()
8503 off += PFKEY_ALIGN8(sizeof(*alg)); in key_register()
8513 off += PFKEY_ALIGN8(sizeof(*sup)); in key_register()
8538 off += PFKEY_ALIGN8(sizeof(struct sadb_alg)); in key_register()
8678 len = PFKEY_ALIGN8(sizeof(*lt)) * 2; in key_expire()
9031 m_adj(m, PFKEY_ALIGN8(sizeof(struct sadb_msg))); in key_promisc()
9638 baselen = PFKEY_ALIGN8(sizeof(struct sadb_address)); in key_validate_ext()
9645 baselen = PFKEY_ALIGN8(sizeof(struct sadb_ident)); in key_validate_ext()
9665 if (baselen + PFKEY_ALIGN8(sa->sa_len) != len) { in key_validate_ext()