Lines Matching refs:ntohs
562 tlen = ntohs(trns->h.len) - sizeof(*trns);
576 type = ntohs(d->type) & ~ISAKMP_GEN_MASK;
577 flag = ntohs(d->type) & ISAKMP_GEN_MASK;
582 s_oakley_attr_v(type, ntohs(d->lorv)));
597 len = ntohs(d->lorv);
612 sa->enctype = (u_int16_t)ntohs(d->lorv);
616 sa->hashtype = (u_int16_t)ntohs(d->lorv);
620 sa->authmethod = ntohs(d->lorv);
624 sa->dh_group = (u_int16_t)ntohs(d->lorv);
629 int type = (int)ntohs(d->lorv);
643 sa->dhgrp->gen1 = ntohs(d->lorv);
645 int len = ntohs(d->lorv);
657 sa->dhgrp->gen2 = ntohs(d->lorv);
659 int len = ntohs(d->lorv);
678 int type = (int)ntohs(d->lorv);
692 || (ntohs(prev->type) & ~ISAKMP_GEN_MASK) !=
728 int len = ntohs(d->lorv);
755 int len = ntohs(d->lorv);
854 tlen -= (sizeof(*d) + ntohs(d->lorv));
855 d = (struct isakmp_data *)((char *)d + sizeof(*d) + ntohs(d->lorv));
1092 len = ntohs(r->trns->h.len) - sizeof(*p->trns);
1471 tlen = ntohs(prop->h.len)
1578 newtlen += ntohs(p->trns->h.len);
1599 trnslen = ntohs(p->trns->h.len);
1726 newtlen += ntohs(p->trns->h.len);
1757 trnslen = ntohs(p->trns->h.len);
1812 ld = ntohs(*(u_int16_t *)buf->v);
2063 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2067 type = ntohs(d->type) & ~ISAKMP_GEN_MASK;
2068 flag = ntohs(d->type) & ISAKMP_GEN_MASK;
2069 lorv = ntohs(d->lorv);
2279 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2284 type = ntohs(d->type) & ~ISAKMP_GEN_MASK;
2285 flag = ntohs(d->type) & ISAKMP_GEN_MASK;
2286 lorv = ntohs(d->lorv);
2500 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2505 type = ntohs(d->type) & ~ISAKMP_GEN_MASK;
2506 flag = ntohs(d->type) & ISAKMP_GEN_MASK;
2507 lorv = ntohs(d->lorv);
3647 if (id_b->proto_id == 0 && ntohs(id_b->port) != 0) {
3651 id_b->proto_id, ntohs(id_b->port));
3659 if (ntohs(id_b->port) != PORT_ISAKMP) {
3663 if (ntohs(id_b->port) != port) {
3666 port, ntohs(id_b->port));
4614 tlen = ntohs(t->h.len) - sizeof(*t);
4626 type = ntohs(d->type) & ~ISAKMP_GEN_MASK;
4627 flag = ntohs(d->type) & ISAKMP_GEN_MASK;
4632 s_ipsecdoi_attr_v(type, ntohs(d->lorv)));
4637 int type = ntohs(d->lorv);
4654 || (ntohs(prev->type) & ~ISAKMP_GEN_MASK) !=
4675 int len = ntohs(d->lorv);
4743 pp->pfs_group = (u_int16_t)ntohs(d->lorv);
4744 else if (pp->pfs_group != (u_int16_t)ntohs(d->lorv)) {
4754 pr->encmode != (u_int16_t)ntohs(d->lorv)) {
4760 pr->encmode = (u_int16_t)ntohs(d->lorv);
4770 tr->authtype = (u_int16_t)ntohs(d->lorv);
4779 tr->encklen = ntohs(d->lorv);
4784 int len = ntohs(d->lorv);
4786 pp->sctx.ctx_strlen = ntohs(pp->sctx.ctx_strlen);
4802 tlen -= (sizeof(*d) + ntohs(d->lorv));
4803 d = (struct isakmp_data *)((caddr_t)d + sizeof(*d) + ntohs(d->lorv));