Lines Matching refs:vp
33 static int rc_pack_list (VALUE_PAIR *vp, char *secret, AUTH_HDR *auth)
44 while (vp != (VALUE_PAIR *) NULL)
47 if (vp->vendorcode != VENDOR_NONE) {
55 *buf++ = (((unsigned int) vp->vendorcode) >> 16) & 255;
56 *buf++ = (((unsigned int) vp->vendorcode) >> 8) & 255;
57 *buf++ = ((unsigned int) vp->vendorcode) & 255;
60 *buf++ = vp->attribute;
63 switch(vp->type) {
65 length = vp->lvalue;
68 memcpy(buf, vp->strvalue, (size_t) length);
77 lvalue = htonl(vp->lvalue);
86 *buf++ = vp->attribute;
87 switch (vp->attribute) {
93 length = vp->lvalue;
104 memcpy ((char *) passbuf, vp->strvalue, (size_t) length);
133 length = vp->lvalue;
138 memcpy ((char *) passbuf, vp->strvalue, (size_t) length);
156 switch (vp->type) {
158 length = vp->lvalue;
160 memcpy (buf, vp->strvalue, (size_t) length);
168 lvalue = htonl (vp->lvalue);
180 vp = vp->next;
214 VALUE_PAIR *vp;
220 if ((vp = rc_avpair_get(data->send_pairs, PW_SERVICE_TYPE)) && \
221 (vp->lvalue == PW_ADMINISTRATIVE))
360 vp = data->receive_pairs;
361 while (vp)
363 if ((vp = rc_avpair_get(vp, PW_REPLY_MESSAGE)))
365 strcat(msg, vp->strvalue);
367 vp = vp->next;