Lines Matching refs:PFKEY_ALIGN8

641 	_CASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) <= _MHLEN);  in key_init()
2326 PFKEY_ALIGN8(sizeof(*xisr) in key_sp2msg()
2364 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_gather_mbuf()
2799 mpolicy = m_pulldown(n, PFKEY_ALIGN8(sizeof(struct sadb_msg)), in key_spdadd()
3064 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spddelete2()
3086 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spddelete2()
3418 if (m->m_len != PFKEY_ALIGN8(sizeof(struct sadb_msg))) { in key_spdflush()
3439 m->m_pkthdr.len = m->m_len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spdflush()
3677 tlen += PFKEY_ALIGN8(len); in key_getspreqmsglen()
3718 len = PFKEY_ALIGN8(sizeof(*lt)) * 2; in key_spdexpire()
4482 const size_t max_length = PFKEY_ALIGN8(sizeof(*key0)) + in key_setsaval()
4483 PFKEY_ALIGN8(IPSEC_KEY_AUTH_MAX_BYTES); in key_setsaval()
4495 if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) && in key_setsaval()
4520 const size_t max_length = PFKEY_ALIGN8(sizeof(*key0)) + in key_setsaval()
4521 PFKEY_ALIGN8(IPSEC_KEY_ENCRYPT_MAX_BYTES); in key_setsaval()
4532 if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) && in key_setsaval()
5016 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_setsadbmsg()
5060 len = PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_setsadbsa()
5098 len = PFKEY_ALIGN8(sizeof(struct sadb_address)) + in key_setsadbaddr()
5099 PFKEY_ALIGN8(saddr->sa_len); in key_setsadbaddr()
5135 mtod(m, caddr_t) + PFKEY_ALIGN8(sizeof(struct sadb_address)), in key_setsadbaddr()
5151 len = PFKEY_ALIGN8(sizeof(struct sadb_x_ipsecif)); in key_setsadbipsecif()
5191 len = PFKEY_ALIGN8(sizeof(*p)); in key_setsadbsession_id()
5228 len = PFKEY_ALIGN8(sizeof(*p)) + PFKEY_ALIGN8(list_len); in key_setsadbsastat()
5251 mtod(m, caddr_t) + PFKEY_ALIGN8(sizeof(*p)), in key_setsadbsastat()
5272 len = PFKEY_ALIGN8(sizeof(struct sadb_x_sa2)); in key_setsadbxsa2()
5309 len = PFKEY_ALIGN8(sizeof(struct sadb_x_policy)); in key_setsadbxpolicy()
5341 len = PFKEY_ALIGN8(sizeof(struct sadb_lifetime)); in key_setsalifecurr()
6737 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)) + in key_getspi()
6738 PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_getspi()
6760 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_getspi()
6763 memset(m_sa, 0, PFKEY_ALIGN8(sizeof(struct sadb_sa))); in key_getspi()
6767 off += PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_getspi()
7954 const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb)); in key_getcomb_esp()
8045 const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb)); in key_getcomb_ah()
8110 const int l = PFKEY_ALIGN8(sizeof(struct sadb_prop)); in key_getprop()
8657 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_register()
8664 off += PFKEY_ALIGN8(sizeof(*sup)); in key_register()
8679 off += PFKEY_ALIGN8(sizeof(*alg)); in key_register()
8689 off += PFKEY_ALIGN8(sizeof(*sup)); in key_register()
8714 off += PFKEY_ALIGN8(sizeof(struct sadb_alg)); in key_register()
8854 len = PFKEY_ALIGN8(sizeof(*lt)) * 2; in key_expire()
9207 m_adj(m, PFKEY_ALIGN8(sizeof(struct sadb_msg))); in key_promisc()
9814 baselen = PFKEY_ALIGN8(sizeof(struct sadb_address)); in key_validate_ext()
9821 baselen = PFKEY_ALIGN8(sizeof(struct sadb_ident)); in key_validate_ext()
9841 if (baselen + PFKEY_ALIGN8(sa->sa_len) != len) { in key_validate_ext()