From 919b28b82f08d7552e2f0febb715ddce6f7208d4 Mon Sep 17 00:00:00 2001 From: Adrian <1823016+EasyNetDev@users.noreply.github.com> Date: Fri, 16 Jul 2021 12:24:13 +0300 Subject: [PATCH] plugins/radius: Add RFC8044 dictionary compatibility for IPv4 address (#291) 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 --- pppd/plugins/radius/dict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pppd/plugins/radius/dict.c b/pppd/plugins/radius/dict.c index 3b2add2..6f2657d 100644 --- a/pppd/plugins/radius/dict.c +++ b/pppd/plugins/radius/dict.c @@ -150,7 +150,7 @@ int rc_read_dictionary (char *filename) { type = PW_TYPE_INTEGER; } - else if (strcmp (typestr, "ipaddr") == 0) + else if (strcmp (typestr, "ipaddr") == 0 || strcmp (typestr, "ipv4addr") == 0) { type = PW_TYPE_IPADDR; } -- 2.39.5