Lines Matching refs:attrpl
248 struct isakmp_pl_attr *attrpl; local
250 attrpl = (struct isakmp_pl_attr *)ph;
251 isakmp_cfg_attr_r(iph1, packet->msgid, attrpl);
274 isakmp_cfg_attr_r(iph1, msgid, attrpl) in isakmp_cfg_attr_r() argument
277 struct isakmp_pl_attr *attrpl;
279 int type = attrpl->type;
292 return isakmp_cfg_reply(iph1, attrpl);
297 return isakmp_cfg_request(iph1, attrpl);
302 return isakmp_cfg_set(iph1, attrpl);
316 isakmp_cfg_reply(iph1, attrpl) in isakmp_cfg_reply() argument
318 struct isakmp_pl_attr *attrpl;
328 tlen = ntohs(attrpl->h.len);
329 attr = (struct isakmp_data *)(attrpl + 1);
330 tlen -= sizeof(*attrpl);
346 attr, ntohs(attrpl->id))) != 0)
389 attr, ntohs(attrpl->id))) != 0)
472 alen = ntohs(attrpl->h.len) - sizeof(*attrpl);
477 memcpy(buf->v, attrpl + 1, buf->l);
489 isakmp_cfg_request(iph1, attrpl) in isakmp_cfg_request() argument
491 struct isakmp_pl_attr *attrpl;
509 tlen = ntohs(attrpl->h.len);
510 attr = (struct isakmp_data *)(attrpl + 1);
511 tlen -= sizeof(*attrpl);
625 reply->id = attrpl->id;
657 isakmp_cfg_set(iph1, attrpl) in isakmp_cfg_set() argument
659 struct isakmp_pl_attr *attrpl;
677 tlen = ntohs(attrpl->h.len);
678 attr = (struct isakmp_data *)(attrpl + 1);
679 tlen -= sizeof(*attrpl);
727 reply->id = attrpl->id;
1715 struct isakmp_pl_attr *attrpl; local
1735 len = sizeof(*attrpl) + sizeof(*attr) * attrcount;
1742 attrpl = (struct isakmp_pl_attr *)buffer->v;
1743 attrpl->h.len = htons(len);
1744 attrpl->type = ISAKMP_CFG_REQUEST;
1745 attrpl->id = htons((u_int16_t)(eay_random() & 0xffff));
1747 attr = (struct isakmp_data *)(attrpl + 1);