eap-radius: Forward RAT_FRAMED_IP_NETMASK as INTERNAL_IP4_NETMASK
authorTobias Brunner <tobias@strongswan.org>
Mon, 19 Aug 2013 11:31:55 +0000 (13:31 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 11 Oct 2013 13:52:22 +0000 (15:52 +0200)
src/libcharon/plugins/eap_radius/eap_radius.c

index 9a242c0..6087a52 100644 (file)
@@ -500,6 +500,11 @@ static void process_cfg_attributes(radius_message_t *msg)
                                                                        ike_sa->get_unique_id(ike_sa), host);
                                }
                        }
+                       else if (type == RAT_FRAMED_IP_NETMASK && data.len == 4)
+                       {
+                               provider->add_attribute(provider, ike_sa->get_unique_id(ike_sa),
+                                                                               INTERNAL_IP4_NETMASK, data);
+                       }
                }
                enumerator->destroy(enumerator);