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);
417 struct isakmp_pl_attr *attr;
421 tlen = sizeof(*attr) +
429 attr = (struct isakmp_pl_attr *)buffer->v;
430 memset(attr, 0, tlen);
432 attr->h.len = htons(tlen);
433 attr->type = ISAKMP_CFG_SET;
434 attr->id = htons(id);
436 stattr = (struct isakmp_data *)(attr + 1);
1370 isakmp_xauth_req(iph1, attr)
1372 struct isakmp_data *attr;
1393 type = ntohs(attr->type) & ~ISAKMP_GEN_MASK;
1398 if ((ntohs(attr->type) & ISAKMP_GEN_TV) == 0) {
1403 if (ntohs(attr->lorv) != XAUTH_TYPE_GENERIC) {
1406 ntohs(attr->lorv));
1465 if ((ntohs(attr->type) & ISAKMP_GEN_TV) == 0) {
1466 dlen = ntohs(attr->lorv);
1468 mraw = (char*)(attr + 1);
1489 if ((buffer = vmalloc(sizeof(*attr) + dlen)) == NULL) {
1495 attr = (struct isakmp_data *)buffer->v;
1497 attr->type = htons(type | ISAKMP_GEN_TV);
1498 attr->lorv = htons(value);
1502 attr->type = htons(type | ISAKMP_GEN_TLV);
1503 attr->lorv = htons(dlen);
1504 data = (char *)(attr + 1);
1532 isakmp_xauth_set(iph1, attr)
1534 struct isakmp_data *attr;
1550 type = ntohs(attr->type) & ~ISAKMP_GEN_MASK;
1577 if (ntohs(attr->lorv) != XAUTH_STATUS_OK) {
1594 if ((ntohs(attr->type) & ISAKMP_GEN_TV) == 0) {
1595 dlen = ntohs(attr->lorv);
1597 mraw = (char*)(attr + 1);
1618 if ((buffer = vmalloc(sizeof(*attr))) == NULL) {
1624 attr = (struct isakmp_data *)buffer->v;
1625 attr->type = htons(type | ISAKMP_GEN_TV);
1626 attr->lorv = htons(0);