Lines Matching refs:PFKEY_ALIGN8
2122 PFKEY_ALIGN8(sizeof(*xisr) in key_sp2msg()
2163 CTASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) <= MHLEN); in key_gather_mbuf()
2164 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_gather_mbuf()
2384 mpolicy = m_pulldown(n, PFKEY_ALIGN8(sizeof(struct sadb_msg)), in key_spdadd()
2625 CTASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) <= MCLBYTES); in key_spddelete2()
2628 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spddelete2()
2636 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_spddelete2()
2822 if (m->m_len != PFKEY_ALIGN8(sizeof(struct sadb_msg))) in key_api_spdflush()
2855 m->m_pkthdr.len = m->m_len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_api_spdflush()
3109 tlen += PFKEY_ALIGN8(len); in key_getspreqmsglen()
3144 len = PFKEY_ALIGN8(sizeof(*lt)) * 2; in key_spdexpire()
3671 if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) && in key_setsaval()
3704 if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) && in key_setsaval()
3713 if (len != PFKEY_ALIGN8(sizeof(struct sadb_key))) in key_setsaval()
4083 len = PFKEY_ALIGN8(sizeof(struct sadb_x_nat_t_type)); in key_setsadbxtype()
4107 len = PFKEY_ALIGN8(sizeof(struct sadb_x_nat_t_port)); in key_setsadbxport()
4132 len = PFKEY_ALIGN8(sizeof(struct sadb_x_nat_t_frag)); in key_setsadbxfrag()
4240 CTASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) <= MCLBYTES); in key_setsadbmsg()
4242 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_setsadbmsg()
4275 len = PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_setsadbsa()
4318 len = PFKEY_ALIGN8(sizeof(struct sadb_address)) + in key_setsadbaddr()
4319 PFKEY_ALIGN8(saddr->sa_len); in key_setsadbaddr()
4338 memcpy(mtod(m, char *) + PFKEY_ALIGN8(sizeof(struct sadb_address)), in key_setsadbaddr()
4356 len = PFKEY_ALIGN8(sizeof(struct sadb_ident)) + PFKEY_ALIGN8(stringlen);
4372 memcpy(mtod(m, void *) + PFKEY_ALIGN8(sizeof(struct sadb_ident)),
4389 len = PFKEY_ALIGN8(sizeof(struct sadb_x_sa2)); in key_setsadbxsa2()
4418 len = PFKEY_ALIGN8(sizeof(struct sadb_x_policy)); in key_setsadbxpolicy()
5481 CTASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) + in key_api_getspi()
5482 PFKEY_ALIGN8(sizeof(struct sadb_sa)) <= MCLBYTES); in key_api_getspi()
5485 len = PFKEY_ALIGN8(sizeof(struct sadb_msg)) + in key_api_getspi()
5486 PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_api_getspi()
5494 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_api_getspi()
5500 off += PFKEY_ALIGN8(sizeof(struct sadb_sa)); in key_api_getspi()
6518 const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb)); in key_getcomb_esp()
6614 const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb)); in key_getcomb_ah()
6677 const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb)); in key_getcomb_ipcomp()
6725 const int l = PFKEY_ALIGN8(sizeof(struct sadb_prop)); in key_getprop()
6880 memset(id, 0, sizeof(*id) + PFKEY_ALIGN8(fqdnlen)); in key_acquire()
6881 id->sadb_ident_len = PFKEY_UNIT64(sizeof(*id) + PFKEY_ALIGN8(fqdnlen)); in key_acquire()
6885 p += sizeof(struct sadb_ident) + PFKEY_ALIGN8(fqdnlen); in key_acquire()
6899 memset(id, 0, sizeof(*id) + PFKEY_ALIGN8(userfqdnlen)); in key_acquire()
6900 id->sadb_ident_len = PFKEY_UNIT64(sizeof(*id) + PFKEY_ALIGN8(userfqdnlen)); in key_acquire()
6908 p += sizeof(struct sadb_ident) + PFKEY_ALIGN8(userfqdnlen); in key_acquire()
7331 off += PFKEY_ALIGN8(sizeof(struct sadb_msg)); in key_api_register()
7339 off += PFKEY_ALIGN8(sizeof(*sup)); in key_api_register()
7355 off += PFKEY_ALIGN8(sizeof(*alg)); in key_api_register()
7365 off += PFKEY_ALIGN8(sizeof(*sup)); in key_api_register()
7379 off += PFKEY_ALIGN8(sizeof(struct sadb_alg)); in key_api_register()
7468 len = PFKEY_ALIGN8(sizeof(*lt)) * 2; in key_expire()
7807 m_adj(m, PFKEY_ALIGN8(sizeof(struct sadb_msg))); in key_api_promisc()
8238 baselen = PFKEY_ALIGN8(sizeof(struct sadb_address)); in key_validate_ext()
8245 baselen = PFKEY_ALIGN8(sizeof(struct sadb_ident)); in key_validate_ext()
8262 if (baselen + PFKEY_ALIGN8(sa->sa_len) != len) in key_validate_ext()