]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
use RADIUS_TUNNEL_TYPE_ESP defined in header file
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 13 Mar 2012 16:00:37 +0000 (17:00 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 13 Mar 2012 16:00:37 +0000 (17:00 +0100)
src/libcharon/plugins/eap_radius/eap_radius.c

index 556baa26423c626b1f20e17bab4346e76ea361f8..c0a3703b6ca2e4886d9f778f5fac16938e1c8f17 100644 (file)
@@ -22,8 +22,6 @@
 
 #include <daemon.h>
 
-#define TUNNEL_TYPE_ESP                9
-
 typedef struct private_eap_radius_t private_eap_radius_t;
 
 /**
@@ -261,7 +259,7 @@ static void process_filter_id(private_eap_radius_t *this, radius_message_t *msg)
                                tunnel_type = untoh32(data.ptr);
                                DBG1(DBG_IKE, "received RADIUS attribute Tunnel-Type: "
                                                          "tag = %u, value = %u", tunnel_tag, tunnel_type);
-                               is_esp_tunnel = (tunnel_type == TUNNEL_TYPE_ESP);
+                               is_esp_tunnel = (tunnel_type == RADIUS_TUNNEL_TYPE_ESP);
                                break;
                        case RAT_FILTER_ID:
                                filter_id = data;