if (rc_avpair_add(rh, &send, PW_USER_PASSWORD, passwd, -1, 0) == NULL)
return ERROR_RC;
if (rc_avpair_add(rh, &send, PW_NAS_PORT_TYPE, nas_port_type, -1, 0) == NULL)
return ERROR_RC;
if (rc_avpair_add(rh, &send, PW_FRAMED_IP_ADDRESS,"172.17.14.90", -1, 0) == NULL)
return ERROR_RC;
above is my part of code "radexample.c
Which used for generating a " radius request" I want to pass Framed IP with it also. my issue is here PW_USER_PASSWORD sends the correct value as it is a "string" type. but PW_FRAMED_IP_ADDRESS sends wrong value as its type is "ip" and I am sending string value..
If I pass "ip" in forth arg. rc_avpair_add
gives error of type conversion !!