Lines Matching refs:secpolicy

183 static LIST_HEAD(_sptree, secpolicy) sptree[IPSEC_DIR_MAX];	/* SPD */
433 static void key_delsp(struct secpolicy *);
434 static struct secpolicy *key_getsp(struct secpolicyindex *);
435 static struct secpolicy *key_getspbyid(u_int32_t);
452 static struct mbuf *key_setdumpsp(struct secpolicy *,
454 static u_int key_getspreqmsglen(struct secpolicy *);
455 static int key_spdexpire(struct secpolicy *);
528 static int key_acquire(struct secasindex *, struct secpolicy *);
655 struct secpolicy *
660 struct secpolicy *sp;
716 struct secpolicy *
723 struct secpolicy *sp;
1391 struct secpolicy *sp,
1416 static void key_freesp_so(struct secpolicy **);
1482 struct secpolicy **sp)
1547 struct secpolicy *sp)
1585 static struct secpolicy *
1589 struct secpolicy *sp;
1614 static struct secpolicy *
1618 struct secpolicy *sp;
1643 struct secpolicy *
1646 struct secpolicy *newsp = NULL;
1660 * create secpolicy structure from sadb_x_policy structure.
1661 * NOTE: `state', `secpolicyindex' in secpolicy structure are not set,
1664 struct secpolicy *
1670 struct secpolicy *newsp;
1899 struct secpolicy *sp;
1929 * copy secpolicy struct to sadb_x_policy structure indicated.
1933 struct secpolicy *sp)
2094 struct secpolicy *newsp;
2262 LIST_INSERT_TAIL(&sptree[newsp->spidx.dir], newsp, secpolicy, chain);
2264 struct secpolicy *tmpsp;
2272 LIST_INSERT_TAIL(&sptree[newsp->spidx.dir], newsp, secpolicy, chain);
2350 struct secpolicy *sp;
2392 struct secpolicy *sp;
2492 struct secpolicy *sp;
2594 struct secpolicy *sp;
2645 struct secpolicy *sp)
2725 struct secpolicy *sp;
2777 struct secpolicy *sp, **spbuf = NULL, **sp_ptr;
2792 KMALLOC_WAIT(spbuf, struct secpolicy**, bufcount * sizeof(struct secpolicy*));
2845 struct secpolicy *sp,
2904 struct secpolicy *sp)
2942 struct secpolicy *sp)
3009 /* set secpolicy */
5186 struct secpolicy **spbuf = NULL, **spptr = NULL;
5197 KMALLOC_WAIT(spbuf, struct secpolicy **, spbufcount * sizeof(struct secpolicy *));
5214 struct secpolicy *sp, *nextsp;
7204 struct secpolicy *sp)