Lines Matching refs:attr

124 	struct isakmp_pl_attr *attr;
146 tlen = sizeof(*attr) +
156 attr = (struct isakmp_pl_attr *)buffer->v;
157 memset(attr, 0, tlen);
159 attr->h.len = htons(tlen);
160 attr->type = ISAKMP_CFG_REQUEST;
161 attr->id = htons(eay_random());
163 typeattr = (struct isakmp_data *)(attr + 1);
186 xauth_attr_reply(iph1, attr, id)
188 struct isakmp_data *attr;
209 type = ntohs(attr->type) & ~ISAKMP_GEN_MASK;
212 switch (ntohs(attr->lorv)) {
239 alen = ntohs(attr->lorv);
247 memcpy(*outlet, attr + 1, alen);
420 struct isakmp_pl_attr *attr;
424 tlen = sizeof(*attr) +
432 attr = (struct isakmp_pl_attr *)buffer->v;
433 memset(attr, 0, tlen);
435 attr->h.len = htons(tlen);
436 attr->type = ISAKMP_CFG_SET;
437 attr->id = htons(id);
439 stattr = (struct isakmp_data *)(attr + 1);
1373 isakmp_xauth_req(iph1, attr)
1375 struct isakmp_data *attr;
1396 type = ntohs(attr->type) & ~ISAKMP_GEN_MASK;
1401 if ((ntohs(attr->type) & ISAKMP_GEN_TV) == 0) {
1406 if (ntohs(attr->lorv) != XAUTH_TYPE_GENERIC) {
1409 ntohs(attr->lorv));
1468 if ((ntohs(attr->type) & ISAKMP_GEN_TV) == 0) {
1469 dlen = ntohs(attr->lorv);
1471 mraw = (char*)(attr + 1);
1492 if ((buffer = vmalloc(sizeof(*attr) + dlen)) == NULL) {
1498 attr = (struct isakmp_data *)buffer->v;
1500 attr->type = htons(type | ISAKMP_GEN_TV);
1501 attr->lorv = htons(value);
1505 attr->type = htons(type | ISAKMP_GEN_TLV);
1506 attr->lorv = htons(dlen);
1507 data = (char *)(attr + 1);
1535 isakmp_xauth_set(iph1, attr)
1537 struct isakmp_data *attr;
1553 type = ntohs(attr->type) & ~ISAKMP_GEN_MASK;
1580 if (ntohs(attr->lorv) != XAUTH_STATUS_OK) {
1597 if ((ntohs(attr->type) & ISAKMP_GEN_TV) == 0) {
1598 dlen = ntohs(attr->lorv);
1600 mraw = (char*)(attr + 1);
1621 if ((buffer = vmalloc(sizeof(*attr))) == NULL) {
1627 attr = (struct isakmp_data *)buffer->v;
1628 attr->type = htons(type | ISAKMP_GEN_TV);
1629 attr->lorv = htons(0);