secpolicy
kdebug_secpolicy(struct secpolicy *sp)
struct secpolicy *sp_out = NULL, *sp_in = NULL;
struct secpolicy *sp;
isakmp_get_sainfo(struct ph2handle *iph2, struct secpolicy *sp_out,
struct secpolicy *sp_in)
struct secpolicy *p;
struct secpolicy *sp_in, *sp_out;
extern int isakmp_get_sainfo(struct ph2handle *, struct secpolicy *, struct secpolicy *);
struct secpolicy *sp_out = NULL, *sp_in = NULL;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *new = NULL;
struct secpolicy *
struct secpolicy *p;
struct secpolicy *
struct secpolicy *p;
struct secpolicy *
struct secpolicy *new;
delsp(struct secpolicy *sp)
struct secpolicy *sp;
inssp(struct secpolicy *new)
struct secpolicy *p;
remsp(struct secpolicy *sp)
struct secpolicy *p, *next;
static TAILQ_HEAD(_sptree, secpolicy) sptree;
struct secpolicy *
struct secpolicy *p;
struct secpolicy *
struct secpolicy *p;
struct secpolicy *found = NULL;
struct secpolicy *sp; /* back pointer to SP */
extern struct secpolicy *getsp(struct policyindex *);
extern struct secpolicy *getsp_r(struct policyindex *);
struct secpolicy *getspbyspid(uint32_t);
extern struct secpolicy *newsp(void);
extern void delsp(struct secpolicy *);
extern void inssp(struct secpolicy *);
extern void remsp(struct secpolicy *);
TAILQ_ENTRY(secpolicy) chain;
struct secpolicy *sp_main,
struct secpolicy *sp_sub)
struct secpolicy;
struct secpolicy *, struct secpolicy *);
static inline struct secpolicy *if_ipsec_add_sp0(struct sockaddr *,
static inline int if_ipsec_del_sp0(struct secpolicy *);
static struct secpolicy *
if_ipsec_del_sp0(struct secpolicy *sp)
struct secpolicy *iv_sp[IPSEC_DIR_MAX];
struct secpolicy *iv_sp6[IPSEC_DIR_MAX];
struct secpolicy *sp = NULL;
struct secpolicy *sp = NULL;
ipsec_destroy_policy(struct secpolicy *sp)
struct secpolicy *newsp, *oldsp;
struct secpolicy **policy;
struct secpolicy *policy;
struct secpolicy ip4_def_policy;
ipsec_sp_reject(const struct secpolicy *sp, const struct mbuf *m)
static struct secpolicy ipsec_dummy_sp __read_mostly = {
struct secpolicy *sp;
static struct secpolicy *ipsec_checkpcbcache(struct mbuf *,
ipsec_sp_hdrsiz(const struct secpolicy *sp, const struct mbuf *m)
struct secpolicy *, int);
struct secpolicy *sp;
static struct secpolicy *ipsec_getpolicybysock(struct mbuf *, u_int,
struct secpolicy ip6_def_policy;
struct secpolicy *
struct secpolicy *sp = NULL;
static void ipsec_destroy_policy(struct secpolicy *);
static int ipsec_sp_reject(const struct secpolicy *, const struct mbuf *);
static size_t ipsec_sp_hdrsiz(const struct secpolicy *, const struct mbuf *);
static struct secpolicy *
struct secpolicy *sp = NULL;
struct secpolicy *sp, int dir)
static struct secpolicy *
struct secpolicy *sp;
static struct secpolicy *
struct secpolicy *currsp = NULL; /* policy on socket */
struct secpolicy *sp;
static struct secpolicy *
struct secpolicy *sp;
static struct secpolicy *
struct secpolicy *sp;
struct secpolicy *sp = NULL;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *sp; /* back pointer to SP */
struct secpolicy *sp_in;
struct secpolicy *sp_out;
struct secpolicy *cachesp;
extern struct secpolicy ip4_def_policy;
extern struct secpolicy ip6_def_policy;
struct secpolicy *ipsec6_check_policy(struct mbuf *, struct inpcb *,
struct secpolicy *sp = NULL;
key_init_sp(struct secpolicy *sp)
key_sp_ref(struct secpolicy *sp, const char* where, int tag)
key_sp_unref(struct secpolicy *sp, const char* where, int tag)
key_freesp_so(struct secpolicy **sp)
key_destroy_sp(struct secpolicy *sp)
key_free_sp(struct secpolicy *sp)
key_socksplist_add(struct secpolicy *sp)
static struct secpolicy *
struct secpolicy *sp;
static struct secpolicy *
struct secpolicy *sp = NULL;
static struct secpolicy *
struct secpolicy *sp;
static struct secpolicy *
struct secpolicy *sp;
struct secpolicy *
struct secpolicy *newsp = NULL;
newsp = kmem_zalloc(sizeof(struct secpolicy), KM_SLEEP);
static struct secpolicy *
struct secpolicy *newsp;
struct secpolicy *
key_sp2msg(const struct secpolicy *sp, int mflag)
const struct sadb_msghdr *mhp, struct secpolicy **_sp,
struct secpolicy *newsp;
struct secpolicy *sp;
struct secpolicy *
struct secpolicy *sp = NULL;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *sp;
struct secpolicy *sp;
key_spdacquire(const struct secpolicy *sp)
struct secpolicy *sp;
struct secpolicy *sp;
key_setdumpsp(struct secpolicy *sp, u_int8_t type, u_int32_t seq, pid_t pid)
(PSLIST_READER_FIRST(&key_spd.splist[(dir)], struct secpolicy, \
key_getspreqmsglen(const struct secpolicy *sp)
struct secpolicy, pslist_entry)
key_spdexpire(struct secpolicy *sp)
struct secpolicy, pslist_entry)
(PSLIST_WRITER_FIRST(&key_spd.splist[(dir)], struct secpolicy, \
PSLIST_WRITER_NEXT((sp), struct secpolicy, pslist_entry)
struct secpolicy *__sp; \
struct secpolicy, pslist_entry)
(PSLIST_READER_FIRST(&key_spd.socksplist, struct secpolicy, \
struct secpolicy *sp;
static void key_freesp_so(struct secpolicy **);
static struct secpolicy *key_getsp (const struct secpolicyindex *);
static struct secpolicy *key_getspbyid (u_int32_t);
static struct secpolicy *key_lookup_and_remove_sp(const struct secpolicyindex *, bool);
static struct secpolicy *key_lookupbyid_and_remove_sp(u_int32_t, bool);
static void key_destroy_sp(struct secpolicy *);
key_acquire(const struct secasindex *saidx, const struct secpolicy *sp, int mflag)
static struct mbuf *key_setdumpsp (struct secpolicy *,
static u_int key_getspreqmsglen (const struct secpolicy *);
static int key_spdexpire (struct secpolicy *);
static int key_acquire(const struct secasindex *, const struct secpolicy *,
key_sp_refcnt(const struct secpolicy *sp)
struct secpolicy *sp;
key_sp_touch(struct secpolicy *sp)
key_unlink_sp(struct secpolicy *sp)
struct secpolicy *
struct secpolicy *sp;
struct secpolicy *
struct secpolicy *sp;
struct secpolicy *key_msg2sp(const struct sadb_x_policy *, size_t, int *);
struct mbuf *key_sp2msg(const struct secpolicy *, int);
int key_spdacquire(const struct secpolicy *);
struct secpolicy *key_kpi_spdadd(struct mbuf *);
struct secpolicy;
struct secpolicy *key_lookup_sp_byspidx(const struct secpolicyindex *, u_int,
struct secpolicy *key_newsp(const char*, int);
struct secpolicy *key_gettunnel(const struct sockaddr *,
void key_init_sp(struct secpolicy *);
void key_free_sp(struct secpolicy *);
u_int key_sp_refcnt(const struct secpolicy *);
void key_sp_ref(struct secpolicy *, const char *, int);
void key_sp_unref(struct secpolicy *, const char *, int);
void key_sp_touch(struct secpolicy *);
void key_socksplist_add(struct secpolicy *);
kdebug_secpolicy(const struct secpolicy *sp)
struct secpolicy;
void kdebug_secpolicy(const struct secpolicy *);
struct secpolicy *keydb_newsecpolicy (void);
void keydb_delsecpolicy (struct secpolicy *);