Lines Matching refs:attr

320 	struct isakmp_data *attr;
329 attr = (struct isakmp_data *)(attrpl + 1);
333 type = ntohs(attr->type);
341 s_isakmp_cfg_type(type), ntohs(attr->lorv));
346 attr, ntohs(attrpl->id))) != 0)
357 tlen -= sizeof(*attr);
358 attr++;
362 type = ntohs(attr->type);
363 alen = ntohs(attr->lorv);
389 attr, ntohs(attrpl->id))) != 0)
393 isakmp_cfg_getaddr4(attr, &iph1->mode_cfg->addr4);
397 isakmp_cfg_getaddr4(attr, &iph1->mode_cfg->mask4);
401 isakmp_cfg_appendaddr4(attr,
407 isakmp_cfg_appendaddr4(attr,
413 isakmp_cfg_getstring(attr,
427 isakmp_unity_reply(iph1, attr);
438 npp = (char *)attr;
439 attr = (struct isakmp_data *)(npp + sizeof(*attr) + alen);
440 tlen -= (sizeof(*attr) + alen);
493 struct isakmp_data *attr;
510 attr = (struct isakmp_data *)(attrpl + 1);
515 type = ntohs(attr->type);
523 s_isakmp_cfg_type(type), ntohs(attr->lorv));
527 reply_attr = isakmp_xauth_req(iph1, attr);
536 tlen -= sizeof(*attr);
537 attr++;
547 type = ntohs(attr->type);
548 alen = ntohs(attr->lorv);
568 reply_attr = isakmp_cfg_net(iph1, attr);
581 reply_attr = isakmp_xauth_req(iph1, attr);
586 attr, ISAKMP_CFG_RACOON_VERSION);
600 reply_attr = isakmp_unity_req(iph1, attr);
611 npp = (char *)attr;
612 attr = (struct isakmp_data *)(npp + sizeof(*attr) + alen);
613 tlen -= (sizeof(*attr) + alen);
661 struct isakmp_data *attr;
678 attr = (struct isakmp_data *)(attrpl + 1);
686 type = ntohs(attr->type);
694 reply_attr = isakmp_xauth_set(iph1, attr);
713 tlen -= sizeof(*attr);
714 attr++;
716 alen = ntohs(attr->lorv);
717 tlen -= (sizeof(*attr) + alen);
718 npp = (char *)attr;
719 attr = (struct isakmp_data *)
720 (npp + sizeof(*attr) + alen);
777 isakmp_cfg_net(iph1, attr)
779 struct isakmp_data *attr;
785 type = ntohs(attr->type);
854 attr, &iph1->mode_cfg->addr4.s_addr);
889 return isakmp_cfg_addr4(iph1, attr,
895 attr, &isakmp_cfg_config.dns4[0],
901 attr, &isakmp_cfg_config.nbns4[0],
907 attr, &isakmp_cfg_config.network4);
919 isakmp_cfg_void(iph1, attr)
921 struct isakmp_data *attr;
926 if ((buffer = vmalloc(sizeof(*attr))) == NULL) {
933 new->type = attr->type;
941 isakmp_cfg_copy(iph1, attr)
943 struct isakmp_data *attr;
948 if ((ntohs(attr->type) & ISAKMP_GEN_MASK) == ISAKMP_GEN_TLV)
949 len = ntohs(attr->lorv);
951 if ((buffer = vmalloc(sizeof(*attr) + len)) == NULL) {
956 memcpy(buffer->v, attr, sizeof(*attr) + ntohs(attr->lorv));
962 isakmp_cfg_short(iph1, attr, value)
964 struct isakmp_data *attr;
971 if ((buffer = vmalloc(sizeof(*attr))) == NULL) {
977 type = ntohs(attr->type) & ~ISAKMP_GEN_MASK;
986 isakmp_cfg_varlen(iph1, attr, string, len)
988 struct isakmp_data *attr;
996 if ((buffer = vmalloc(sizeof(*attr) + len)) == NULL) {
1003 new->type = attr->type;
1012 isakmp_cfg_string(iph1, attr, string)
1014 struct isakmp_data *attr;
1018 return isakmp_cfg_varlen(iph1, attr, string, len);
1022 isakmp_cfg_addr4(iph1, attr, addr)
1024 struct isakmp_data *attr;
1032 if ((buffer = vmalloc(sizeof(*attr) + len)) == NULL) {
1039 new->type = attr->type;
1047 isakmp_cfg_addr4_list(iph1, attr, addr, nbr)
1049 struct isakmp_data *attr;
1066 if ((bufone = vmalloc(sizeof(*attr) + len)) == NULL) {
1072 new->type = attr->type;
1075 new += (len + sizeof(*attr));
1716 struct isakmp_data *attr;
1735 len = sizeof(*attrpl) + sizeof(*attr) * attrcount;
1747 attr = (struct isakmp_data *)(attrpl + 1);
1750 attr->type = htons(attrlist[i]);
1751 attr->lorv = htons(0);
1752 attr++;
1767 isakmp_cfg_getaddr4(attr, ip)
1768 struct isakmp_data *attr;
1771 size_t alen = ntohs(attr->lorv);
1779 addr = (in_addr_t *)(attr + 1);
1786 isakmp_cfg_appendaddr4(attr, ip, num, max)
1787 struct isakmp_data *attr;
1792 size_t alen = ntohs(attr->lorv);
1804 addr = (in_addr_t *)(attr + 1);
1812 isakmp_cfg_getstring(attr, str)
1813 struct isakmp_data *attr;
1816 size_t alen = ntohs(attr->lorv);
1818 src = (char *)(attr + 1);