Lines Matching refs:ntohs
195 if (msg->l < sizeof(*isakmp) + ntohs(gen->len) + sizeof(*nd)) {
203 nd = (struct isakmp_gen *) ((caddr_t) gen + ntohs(gen->len));
206 if (ntohs(nd->len) > msg->l - (sizeof(struct isakmp) +
207 ntohs(gen->len))) {
213 if (ntohs(nd->len) < sizeof(*nd)) {
219 payload = vmalloc(ntohs(nd->len));
226 memcpy(payload->v, (caddr_t) nd, ntohs(nd->len));
238 if (ntohs(gen->len) - sizeof(struct isakmp_gen) != hash->l) {
342 type = ntohs(notify->type);
405 if (ntohs(notify->h.len) < sizeof(*notify) + notify->spi_size) {
424 l = ntohs(notify->h.len) - sizeof(*notify) - notify->spi_size;
480 num_spi = ntohs(delete->num_spi);
481 tlen = ntohs(delete->h.len) - sizeof(struct isakmp_pl_d);
1204 set_port(src, ntohs(natt_port->sadb_x_nat_t_port_port));
1208 set_port(dst, ntohs(natt_port->sadb_x_nat_t_port_port));
1489 switch (ntohs(notify->type)) {
1499 s_isakmp_notify_msg(ntohs(notify->type)));
1510 s_isakmp_notify_msg(ntohs(notify->type)));