Changeset View
Changeset View
Standalone View
Standalone View
sys/netipsec/xform_ipcomp.c
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* IPComp input callback from the crypto driver. | * IPComp input callback from the crypto driver. | ||||
*/ | */ | ||||
static int | static int | ||||
ipcomp_input_cb(struct cryptop *crp) | ipcomp_input_cb(struct cryptop *crp) | ||||
{ | { | ||||
char buf[IPSEC_ADDRSTRLEN]; | char buf[IPSEC_ADDRSTRLEN]; | ||||
struct cryptodesc *crd; | |||||
struct xform_data *xd; | struct xform_data *xd; | ||||
struct mbuf *m; | struct mbuf *m; | ||||
struct secasvar *sav; | struct secasvar *sav; | ||||
struct secasindex *saidx; | struct secasindex *saidx; | ||||
caddr_t addr; | caddr_t addr; | ||||
uint64_t cryptoid; | uint64_t cryptoid; | ||||
int hlen = IPCOMP_HLENGTH, error, clen; | int hlen = IPCOMP_HLENGTH, error, clen; | ||||
int skip, protoff; | int skip, protoff; | ||||
uint8_t nproto; | uint8_t nproto; | ||||
crd = crp->crp_desc; | |||||
m = (struct mbuf *) crp->crp_buf; | m = (struct mbuf *) crp->crp_buf; | ||||
xd = (struct xform_data *) crp->crp_opaque; | xd = (struct xform_data *) crp->crp_opaque; | ||||
sav = xd->sav; | sav = xd->sav; | ||||
skip = xd->skip; | skip = xd->skip; | ||||
protoff = xd->protoff; | protoff = xd->protoff; | ||||
cryptoid = xd->cryptoid; | cryptoid = xd->cryptoid; | ||||
saidx = &sav->sah->saidx; | saidx = &sav->sah->saidx; | ||||
▲ Show 20 Lines • Show All 482 Lines • Show Last 20 Lines |