xh
__offsetof(struct ipsec_accel_in_tag, xh), M_NOWAIT);
if (ipsec_accel_fill_xh(ifp, drv_spi, &mtag->xh)) {
xh = (struct xform_history *)(mtag + 1);
kdebug_secasindex_mode(xh->mode), xh->proto,
ipsec_address(&xh->dst, buf, sizeof(buf))));
if (xh->proto != sp->req[idx]->saidx.proto)
if (xh->mode != sp->req[idx]->saidx.mode &&
xh->mode != IPSEC_MODE_ANY)
if (key_sockaddrcmp_withmask(&xh->dst.sa,
if (key_sockaddrcmp(&xh->dst.sa,
struct xform_history *xh;
struct xform_history *xh;
xh = (struct xform_history *)(mtag + 1);
bcopy(&saidx->dst, &xh->dst, saidx->dst.sa.sa_len);
xh->spi = sav->spi;
xh->proto = sproto;
xh->mode = saidx->mode;
struct xform_history *xh;
xh = (struct xform_history *)(mtag + 1);
bcopy(&saidx->dst, &xh->dst, saidx->dst.sa.sa_len);
xh->spi = sav->spi;
xh->proto = sproto;
xh->mode = saidx->mode;
ipsec_accel_fill_xh_impl(if_t ifp, uint32_t drv_spi, struct xform_history *xh)
memcpy(xh, &i->xfh, sizeof(*xh));
struct xform_history *xh);
ipsec_accel_fill_xh(if_t ifp, uint32_t drv_spi, struct xform_history *xh)
bool (*p)(if_t ifp, uint32_t drv_spi, struct xform_history *xh);
return (p(ifp, drv_spi, xh));
struct xform_history xh; /* Must be first to mimic IPSEC_IN_DONE */
struct xform_history *xh);
struct xform_history *xh;
mtag = m_tag_get(PACKET_TAG_IPSEC_OUT_DONE, sizeof(*xh), M_NOWAIT);
xh = (struct xform_history *)(mtag + 1);
xh->dst = saidx->dst;
xh->proto = saidx->proto;
xh->mode = saidx->mode;
xh->spi = sav->spi;
struct xform_history *xh);
tm.tm_sec = bcd2int(xh(args.ecx));
tm.tm_hour = bcd2int(xh(args.edx));
tm.tm_mon = bcd2int(xh(args.esi)) - 1;
#define APMERR(a) xh(a)