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);
1366 isakmp_xauth_req(iph1, attr)
1368 struct isakmp_data *attr;
1389 type = ntohs(attr->type) & ~ISAKMP_GEN_MASK;
1394 if ((ntohs(attr->type) & ISAKMP_GEN_TV) == 0) {
1399 if (ntohs(attr->lorv) != XAUTH_TYPE_GENERIC) {
1402 ntohs(attr->lorv));
1458 if ((ntohs(attr->type) & ISAKMP_GEN_TV) == 0) {
1459 dlen = ntohs(attr->lorv);
1461 mraw = (char*)(attr + 1);
1482 if ((buffer = vmalloc(sizeof(*attr) + dlen)) == NULL) {
1488 attr = (struct isakmp_data *)buffer->v;
1490 attr->type = htons(type | ISAKMP_GEN_TV);
1491 attr->lorv = htons(value);
1495 attr->type = htons(type | ISAKMP_GEN_TLV);
1496 attr->lorv = htons(dlen);
1497 data = (char *)(attr + 1);
1522 isakmp_xauth_set(iph1, attr)
1524 struct isakmp_data *attr;
1540 type = ntohs(attr->type) & ~ISAKMP_GEN_MASK;
1567 if (ntohs(attr->lorv) != XAUTH_STATUS_OK) {
1584 if ((ntohs(attr->type) & ISAKMP_GEN_TV) == 0) {
1585 dlen = ntohs(attr->lorv);
1587 mraw = (char*)(attr + 1);
1608 if ((buffer = vmalloc(sizeof(*attr))) == NULL) {
1614 attr = (struct isakmp_data *)buffer->v;
1615 attr->type = htons(type | ISAKMP_GEN_TV);
1616 attr->lorv = htons(0);