This patch adds ipv4addr RADIUS data type compatible with RFC8044.
New dictionaries from RADIUS is using ipv4addr instead of old
ipaddr data type. This patch is avoiding modification of RADIUS
dictionaries to be compatible with PPP.
Signed-off-by: Adrian Ban <devel@easynet.dev>
{
type = PW_TYPE_INTEGER;
}
{
type = PW_TYPE_INTEGER;
}
- else if (strcmp (typestr, "ipaddr") == 0)
+ else if (strcmp (typestr, "ipaddr") == 0 || strcmp (typestr, "ipv4addr") == 0)
{
type = PW_TYPE_IPADDR;
}
{
type = PW_TYPE_IPADDR;
}