PFKEY_ALIGN8
+ PFKEY_ALIGN8(2*sysdep_sa_len(local))
+ PFKEY_ALIGN8(sysdep_sa_len(src))
+ PFKEY_ALIGN8(sysdep_sa_len(dst))
+ PFKEY_ALIGN8(sysdep_sa_len(sa_parms->src))
+ PFKEY_ALIGN8(sysdep_sa_len(sa_parms->dst))
PFKEY_ALIGN8(sa_parms->e_keylen));
PFKEY_ALIGN8(sa_parms->a_keylen));
+ PFKEY_ALIGN8(sa_parms->ctxstrlen));
PFKEY_ALIGN8(sysdep_sa_len(sa_parms->l_natt_oa));
(u_int)PFKEY_ALIGN8(sysdep_sa_len(sa_parms->l_natt_oa)),
+ PFKEY_ALIGN8(sysdep_sa_len(src))
+ PFKEY_ALIGN8(sysdep_sa_len(dst));
+ PFKEY_ALIGN8(sysdep_sa_len(src))
+ PFKEY_ALIGN8(sysdep_sa_len(src))
len = sizeof(struct sadb_address) + PFKEY_ALIGN8(sysdep_sa_len(saddr));
len = sizeof(struct sadb_x_kmaddress) + PFKEY_ALIGN8(2*salen);
len = sizeof(struct sadb_key) + PFKEY_ALIGN8(keylen);
len = sizeof(struct sadb_x_sec_ctx) + PFKEY_ALIGN8(sec_ctxlen);
+ PFKEY_ALIGN8(sysdep_sa_len(src))
+ PFKEY_ALIGN8(sysdep_sa_len(dst));
+ PFKEY_ALIGN8(sysdep_sa_len(src))
+ PFKEY_ALIGN8(sysdep_sa_len(dst));
policylen += PFKEY_ALIGN8(xisrlen);
+ PFKEY_ALIGN8(spidx->sec_ctx.ctx_strlen);
xisr->sadb_x_ipsecrequest_len = PFKEY_ALIGN8(xisrlen);
if (addrslen != PFKEY_ALIGN8(2*local_len))
PFKEY_ALIGN8(salen));
PFKEY_ALIGN8(salen));
PFKEY_UNIT64(slen + PFKEY_ALIGN8(sec_ctx.len));
PFKEY_ALIGN8(salen));
PFKEY_ALIGN8(salen));
+ PFKEY_ALIGN8(p_key_enc_len));
+ PFKEY_ALIGN8(p_key_auth_len));
PFKEY_ALIGN8(sec_ctx.len));
PFKEY_ALIGN8(salen));
PFKEY_ALIGN8(salen));
PFKEY_ALIGN8(salen));
(*off) += PFKEY_ALIGN8(elen + vlen);
m->m_len = PFKEY_ALIGN8(len);
size = sizeof(*saaddr) + PFKEY_ALIGN8(addr->sa_len);
size += PFKEY_ALIGN8(sizeof(*xisr));
size += PFKEY_ALIGN8(src->sa_len + dst->sa_len);
xisr->sadb_x_ipsecrequest_len = PFKEY_ALIGN8(sizeof(*xisr));
PFKEY_ALIGN8(src->sa_len + dst->sa_len);
- (sizeof(xsrc) + PFKEY_ALIGN8(src->sa_len));
- (sizeof(xdst) + PFKEY_ALIGN8(dst->sa_len));
padlen -= PFKEY_ALIGN8(sizeof(xisr));
PFKEY_ALIGN8(sizeof(*xisr)
CTASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) <= MHLEN);
len = PFKEY_ALIGN8(sizeof(struct sadb_msg));
mpolicy = m_pulldown(n, PFKEY_ALIGN8(sizeof(struct sadb_msg)),
CTASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) <= MCLBYTES);
len = PFKEY_ALIGN8(sizeof(struct sadb_msg));
off += PFKEY_ALIGN8(sizeof(struct sadb_msg));
if (m->m_len != PFKEY_ALIGN8(sizeof(struct sadb_msg)))
m->m_pkthdr.len = m->m_len = PFKEY_ALIGN8(sizeof(struct sadb_msg));
tlen += PFKEY_ALIGN8(len);
len = PFKEY_ALIGN8(sizeof(*lt)) * 2;
if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) &&
if (len == PFKEY_ALIGN8(sizeof(struct sadb_key)) &&
if (len != PFKEY_ALIGN8(sizeof(struct sadb_key)))
len = PFKEY_ALIGN8(sizeof(struct sadb_x_nat_t_type));
len = PFKEY_ALIGN8(sizeof(struct sadb_x_nat_t_port));
len = PFKEY_ALIGN8(sizeof(struct sadb_x_nat_t_frag));
CTASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) <= MCLBYTES);
len = PFKEY_ALIGN8(sizeof(struct sadb_msg));
len = PFKEY_ALIGN8(sizeof(struct sadb_sa));
len = PFKEY_ALIGN8(sizeof(struct sadb_address)) +
PFKEY_ALIGN8(saddr->sa_len);
memcpy(mtod(m, char *) + PFKEY_ALIGN8(sizeof(struct sadb_address)),
len = PFKEY_ALIGN8(sizeof(struct sadb_ident)) + PFKEY_ALIGN8(stringlen);
memcpy(mtod(m, void *) + PFKEY_ALIGN8(sizeof(struct sadb_ident)),
len = PFKEY_ALIGN8(sizeof(struct sadb_x_sa2));
len = PFKEY_ALIGN8(sizeof(struct sadb_x_policy));
CTASSERT(PFKEY_ALIGN8(sizeof(struct sadb_msg)) +
PFKEY_ALIGN8(sizeof(struct sadb_sa)) <= MCLBYTES);
len = PFKEY_ALIGN8(sizeof(struct sadb_msg)) +
PFKEY_ALIGN8(sizeof(struct sadb_sa));
off += PFKEY_ALIGN8(sizeof(struct sadb_msg));
off += PFKEY_ALIGN8(sizeof(struct sadb_sa));
const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb));
const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb));
const int l = PFKEY_ALIGN8(sizeof(struct sadb_comb));
const int l = PFKEY_ALIGN8(sizeof(struct sadb_prop));
memset(id, 0, sizeof(*id) + PFKEY_ALIGN8(fqdnlen));
id->sadb_ident_len = PFKEY_UNIT64(sizeof(*id) + PFKEY_ALIGN8(fqdnlen));
p += sizeof(struct sadb_ident) + PFKEY_ALIGN8(fqdnlen);
memset(id, 0, sizeof(*id) + PFKEY_ALIGN8(userfqdnlen));
id->sadb_ident_len = PFKEY_UNIT64(sizeof(*id) + PFKEY_ALIGN8(userfqdnlen));
p += sizeof(struct sadb_ident) + PFKEY_ALIGN8(userfqdnlen);
off += PFKEY_ALIGN8(sizeof(struct sadb_msg));
off += PFKEY_ALIGN8(sizeof(*sup));
off += PFKEY_ALIGN8(sizeof(*alg));
off += PFKEY_ALIGN8(sizeof(*sup));
off += PFKEY_ALIGN8(sizeof(struct sadb_alg));
len = PFKEY_ALIGN8(sizeof(*lt)) * 2;
m_adj(m, PFKEY_ALIGN8(sizeof(struct sadb_msg)));
baselen = PFKEY_ALIGN8(sizeof(struct sadb_address));
baselen = PFKEY_ALIGN8(sizeof(struct sadb_ident));
if (baselen + PFKEY_ALIGN8(sa->sa_len) != len)