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);
1475 tlen = ntohs(prop->h.len)
1582 newtlen += ntohs(p->trns->h.len);
1603 trnslen = ntohs(p->trns->h.len);
1730 newtlen += ntohs(p->trns->h.len);
1761 trnslen = ntohs(p->trns->h.len);
1816 ld = ntohs(*(u_int16_t *)buf->v);
2067 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2071 type = ntohs(d->type) & ~ISAKMP_GEN_MASK;
2072 flag = ntohs(d->type) & ISAKMP_GEN_MASK;
2073 lorv = ntohs(d->lorv);
2283 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2288 type = ntohs(d->type) & ~ISAKMP_GEN_MASK;
2289 flag = ntohs(d->type) & ISAKMP_GEN_MASK;
2290 lorv = ntohs(d->lorv);
2504 tlen = ntohs(trns->h.len) - sizeof(struct isakmp_pl_t);
2509 type = ntohs(d->type) & ~ISAKMP_GEN_MASK;
2510 flag = ntohs(d->type) & ISAKMP_GEN_MASK;
2511 lorv = ntohs(d->lorv);
3651 if (id_b->proto_id == 0 && ntohs(id_b->port) != 0) {
3655 id_b->proto_id, ntohs(id_b->port));
3663 if (ntohs(id_b->port) != PORT_ISAKMP) {
3667 if (ntohs(id_b->port) != port) {
3670 port, ntohs(id_b->port));
4628 tlen = ntohs(t->h.len) - sizeof(*t);
4640 type = ntohs(d->type) & ~ISAKMP_GEN_MASK;
4641 flag = ntohs(d->type) & ISAKMP_GEN_MASK;
4646 s_ipsecdoi_attr_v(type, ntohs(d->lorv)));
4651 int type = ntohs(d->lorv);
4668 || (ntohs(prev->type) & ~ISAKMP_GEN_MASK) !=
4689 int len = ntohs(d->lorv);
4757 pp->pfs_group = (u_int16_t)ntohs(d->lorv);
4758 else if (pp->pfs_group != (u_int16_t)ntohs(d->lorv)) {
4768 pr->encmode != (u_int16_t)ntohs(d->lorv)) {
4774 pr->encmode = (u_int16_t)ntohs(d->lorv);
4784 tr->authtype = (u_int16_t)ntohs(d->lorv);
4793 tr->encklen = ntohs(d->lorv);
4798 int len = ntohs(d->lorv);
4800 pp->sctx.ctx_strlen = ntohs(pp->sctx.ctx_strlen);
4816 tlen -= (sizeof(*d) + ntohs(d->lorv));
4817 d = (struct isakmp_data *)((caddr_t)d + sizeof(*d) + ntohs(d->lorv));