From: aland Date: Fri, 20 Apr 2007 08:43:21 +0000 (+0000) Subject: Removed "lvalue" from the VALUE_PAIR structure. This will break X-Git-Tag: release_2_0_0_pre1~107 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=e48799bd78226223d00b18d82e1bb7f2116aabbc;p=freeradius.git Removed "lvalue" from the VALUE_PAIR structure. This will break many third-party modules. However, it enables us to pass the VALUE_PAIR_DATA structure around, and do comparisons on it, which should permit greater flexibility in the configuration. --- diff --git a/src/include/libradius.h b/src/include/libradius.h index 4247f49..46e861b 100644 --- a/src/include/libradius.h +++ b/src/include/libradius.h @@ -151,17 +151,16 @@ typedef struct value_pair { int type; int length; /* of data */ LRAD_TOKEN operator; - uint32_t lvalue; /* DELETE ME ASAP */ ATTR_FLAGS flags; struct value_pair *next; VALUE_PAIR_DATA data; } VALUE_PAIR; #define vp_strvalue data.strvalue #define vp_octets data.octets -#define vp_ipaddr lvalue +#define vp_ipaddr data.ipaddr.s_addr #define vp_ipv6addr data.ipv6addr -#define vp_date lvalue -#define vp_integer lvalue +#define vp_date data.date +#define vp_integer data.integer #define vp_ifid data.ifid #define vp_ipv6prefix data.ipv6prefix #define vp_filter data.filter