Lines Matching refs:idx
394 #define KEY_SETSECSPIDX(_dir, s, d, ps, pd, ulp, idx) \
396 bzero((idx), sizeof(struct secpolicyindex)); \
397 (idx)->dir = (_dir); \
398 (idx)->prefs = (ps); \
399 (idx)->prefd = (pd); \
400 (idx)->ul_proto = (ulp); \
401 bcopy((s), &(idx)->src, ((struct sockaddr *)(s))->sa_len); \
402 bcopy((d), &(idx)->dst, ((struct sockaddr *)(d))->sa_len); \
409 #define KEY_SETSECASIDX(p, m, r, s, d, idx) \
411 bzero((idx), sizeof(struct secasindex)); \
412 (idx)->proto = (p); \
413 (idx)->mode = (m); \
414 (idx)->reqid = (r); \
415 bcopy((s), &(idx)->src, ((const struct sockaddr *)(s))->sa_len); \
416 bcopy((d), &(idx)->dst, ((const struct sockaddr *)(d))->sa_len); \
2000 int idx;
2009 idx = items[i];
2010 if (idx < 0 || idx > SADB_EXT_MAX)
2013 if (idx == SADB_EXT_RESERVED && mhp->msg == NULL)
2015 if (idx != SADB_EXT_RESERVED &&
2016 (mhp->ext[idx] == NULL || mhp->extlen[idx] == 0))
2019 if (idx == SADB_EXT_RESERVED) {
2033 len = mhp->extlen[idx];
2040 m_copydata(m, mhp->extoff[idx], mhp->extlen[idx],
2043 n = m_copym(m, mhp->extoff[idx], mhp->extlen[idx],