Lines Matching refs:extlen
400 int extlen[SADB_EXT_MAX + 1];
1910 (mhp->ext[idx] == NULL || mhp->extlen[idx] == 0))
1927 len = mhp->extlen[idx];
1934 m_copydata(m, mhp->extoff[idx], mhp->extlen[idx],
1937 n = m_copym(m, mhp->extoff[idx], mhp->extlen[idx],
2004 if (mhp->extlen[SADB_EXT_ADDRESS_SRC] < sizeof(struct sadb_address) ||
2005 mhp->extlen[SADB_EXT_ADDRESS_DST] < sizeof(struct sadb_address) ||
2006 mhp->extlen[SADB_X_EXT_POLICY] < sizeof(struct sadb_x_policy)) {
2011 if (mhp->extlen[SADB_EXT_LIFETIME_HARD]
2055 && mhp->extlen[SADB_X_EXT_POLICY] <= sizeof(*xpl0)) {
2299 if (mhp->extlen[SADB_EXT_ADDRESS_SRC] < sizeof(struct sadb_address) ||
2300 mhp->extlen[SADB_EXT_ADDRESS_DST] < sizeof(struct sadb_address) ||
2301 mhp->extlen[SADB_X_EXT_POLICY] < sizeof(struct sadb_x_policy)) {
2394 mhp->extlen[SADB_X_EXT_POLICY] < sizeof(struct sadb_x_policy)) {
2448 mhp->extlen[SADB_X_EXT_POLICY], M_DONTWAIT);
2496 mhp->extlen[SADB_X_EXT_POLICY] < sizeof(struct sadb_x_policy)) {
3377 if (mhp->extlen[SADB_EXT_SA] < sizeof(*sa0)) {
3392 if (mhp->extlen[SADB_EXT_SA] < sizeof(struct sadb_sa_2) ||
3428 len = mhp->extlen[SADB_EXT_KEY_AUTH];
3467 len = mhp->extlen[SADB_EXT_KEY_ENCRYPT];
3577 if (mhp->extlen[SADB_EXT_LIFETIME_HARD] < sizeof(*lft0)) {
3594 if (mhp->extlen[SADB_EXT_LIFETIME_SOFT] < sizeof(*lft0)) {
5187 if (mhp->extlen[SADB_EXT_ADDRESS_SRC] < sizeof(struct sadb_address) ||
5188 mhp->extlen[SADB_EXT_ADDRESS_DST] < sizeof(struct sadb_address)) {
5496 if (mhp->extlen[SADB_EXT_SA] < sizeof(struct sadb_sa) ||
5497 mhp->extlen[SADB_EXT_ADDRESS_SRC] < sizeof(struct sadb_address) ||
5498 mhp->extlen[SADB_EXT_ADDRESS_DST] < sizeof(struct sadb_address)) {
5718 if (mhp->extlen[SADB_EXT_SA] < sizeof(struct sadb_sa) ||
5719 mhp->extlen[SADB_EXT_ADDRESS_SRC] < sizeof(struct sadb_address) ||
5720 mhp->extlen[SADB_EXT_ADDRESS_DST] < sizeof(struct sadb_address)) {
5843 idsrclen = mhp->extlen[SADB_EXT_IDENTITY_SRC];
5844 iddstlen = mhp->extlen[SADB_EXT_IDENTITY_DST];
5974 if (mhp->extlen[SADB_EXT_ADDRESS_SRC] < sizeof(struct sadb_address) ||
5975 mhp->extlen[SADB_EXT_ADDRESS_DST] < sizeof(struct sadb_address)) {
5991 } else if (mhp->extlen[SADB_EXT_SA] < sizeof(struct sadb_sa)) {
6177 if (mhp->extlen[SADB_EXT_SA] < sizeof(struct sadb_sa) ||
6178 mhp->extlen[SADB_EXT_ADDRESS_SRC] < sizeof(struct sadb_address) ||
6179 mhp->extlen[SADB_EXT_ADDRESS_DST] < sizeof(struct sadb_address)) {
6893 if (mhp->extlen[SADB_EXT_ADDRESS_SRC] < sizeof(struct sadb_address) ||
6894 mhp->extlen[SADB_EXT_ADDRESS_DST] < sizeof(struct sadb_address) ||
6895 mhp->extlen[SADB_EXT_PROPOSAL] < sizeof(struct sadb_prop)) {
7866 int extlen;
7882 extlen = end; /*just in case extlen is not updated*/
7883 for (off = sizeof(struct sadb_msg); off < end; off += extlen) {
7934 extlen = PFKEY_UNUNIT64(ext->sadb_ext_len);
7936 if (key_validate_ext(ext, extlen)) {
7942 n = m_pulldown(m, off, extlen, &toff);
7951 mhp->extlen[ext->sadb_ext_type] = extlen;