Lines Matching refs:tlen
1705 int tlen;
1718 tlen = PFKEY_EXTLEN(xpl0) - sizeof(*xpl0);
1721 while (tlen > 0) {
1860 tlen -= xisr->sadb_x_ipsecrequest_len;
1863 if (tlen < 0) {
1864 ipseclog((LOG_DEBUG, "key_msg2sp: becoming tlen < 0.\n"));
1936 int tlen;
1944 tlen = key_getspreqmsglen(sp);
1946 m = key_alloc_mbuf(tlen);
1953 m->m_len = tlen;
1956 bzero(xpl, tlen);
1958 xpl->sadb_x_policy_len = PFKEY_UNIT64(tlen);
2906 u_int tlen;
2908 tlen = sizeof(struct sadb_x_policy);
2912 return tlen;
2924 tlen += PFKEY_ALIGN8(len);
2928 return tlen;
4443 u_int16_t tlen,
4476 p->sadb_msg_len = PFKEY_UNIT64(tlen);