Changeset View
Changeset View
Standalone View
Standalone View
sys/netipsec/ipsec_support.h
Show All 38 Lines | |||||
struct ipsec_support; | struct ipsec_support; | ||||
struct tcpmd5_support; | struct tcpmd5_support; | ||||
size_t ipsec_hdrsiz_inpcb(struct inpcb *); | size_t ipsec_hdrsiz_inpcb(struct inpcb *); | ||||
int ipsec_init_pcbpolicy(struct inpcb *); | int ipsec_init_pcbpolicy(struct inpcb *); | ||||
int ipsec_delete_pcbpolicy(struct inpcb *); | int ipsec_delete_pcbpolicy(struct inpcb *); | ||||
int ipsec_copy_pcbpolicy(struct inpcb *, struct inpcb *); | int ipsec_copy_pcbpolicy(struct inpcb *, struct inpcb *); | ||||
/* | |||||
* The pcbctl function has the following locking characteristics: | |||||
* On setting values, the inp must already be wlocked. If an error is | |||||
* returned, the lock must be released. If there is no error returned, | |||||
* then the lock must be held. | |||||
* On getting values, the inp must already be wlocked. The lock must be | |||||
* released before returning. | |||||
*/ | |||||
struct ipsec_methods { | struct ipsec_methods { | ||||
int (*input)(struct mbuf *, int, int); | int (*input)(struct mbuf *, int, int); | ||||
int (*check_policy)(const struct mbuf *, struct inpcb *); | int (*check_policy)(const struct mbuf *, struct inpcb *); | ||||
int (*forward)(struct mbuf *); | int (*forward)(struct mbuf *); | ||||
int (*output)(struct mbuf *, struct inpcb *); | int (*output)(struct mbuf *, struct inpcb *); | ||||
int (*pcbctl)(struct inpcb *, struct sockopt *); | int (*pcbctl)(struct inpcb *, struct sockopt *); | ||||
size_t (*hdrsize)(struct inpcb *); | size_t (*hdrsize)(struct inpcb *); | ||||
int (*capability)(struct mbuf *, u_int); | int (*capability)(struct mbuf *, u_int); | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |