Lines Matching refs:ntohs
201 if (tlen < ntohs(ph->len)) {
208 plogdump(LLV_DEBUG, ph, ntohs(ph->len));
217 plen = ntohs(ph->len);
219 plen = ntohs(nph->len);
264 tlen -= ntohs(ph->len);
266 ph = (struct isakmp_gen *)(npp + ntohs(ph->len));
328 tlen = ntohs(attrpl->h.len);
333 type = ntohs(attr->type);
341 s_isakmp_cfg_type(type), ntohs(attr->lorv));
346 attr, ntohs(attrpl->id))) != 0)
362 type = ntohs(attr->type);
363 alen = ntohs(attr->lorv);
389 attr, ntohs(attrpl->id))) != 0)
472 alen = ntohs(attrpl->h.len) - sizeof(*attrpl);
509 tlen = ntohs(attrpl->h.len);
515 type = ntohs(attr->type);
523 s_isakmp_cfg_type(type), ntohs(attr->lorv));
547 type = ntohs(attr->type);
548 alen = ntohs(attr->lorv);
677 tlen = ntohs(attrpl->h.len);
686 type = ntohs(attr->type);
716 alen = ntohs(attr->lorv);
785 type = ntohs(attr->type);
948 if ((ntohs(attr->type) & ISAKMP_GEN_MASK) == ISAKMP_GEN_TLV)
949 len = ntohs(attr->lorv);
956 memcpy(buffer->v, attr, sizeof(*attr) + ntohs(attr->lorv));
977 type = ntohs(attr->type) & ~ISAKMP_GEN_MASK;
1771 size_t alen = ntohs(attr->lorv);
1792 size_t alen = ntohs(attr->lorv);
1816 size_t alen = ntohs(attr->lorv);