]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Shrink the size of the VALUE_PAIR structure
authorAlan T. DeKok <aland@freeradius.org>
Tue, 22 Nov 2011 16:49:02 +0000 (17:49 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 22 Nov 2011 17:27:27 +0000 (18:27 +0100)
commitb14fc9d3d978118617dfce7689f2ea154883c993
treeeafa02fb0cdb6f13dd572108f08df0ef2c2dfea2
parent85a524257fbd0c35a160e2c8a2fa5b179491d53a
Shrink the size of the VALUE_PAIR structure

Now that we're not writing strings to integer attributes,
we can dynamically change the size of the VALUE_PAIR.
It should be large enough to contain it's necessary fields,
and *only* enough of the VALUE_PAIR_DATA structure to contain
the type-specific data.  This means we save 250 bytes
of memory for every integer / date / ipaddr VALUE_PAIR.
src/lib/radius.c
src/lib/valuepair.c