1 Index: freeradius-server/raddb/mods-available/ippool
2 ===================================================================
3 --- freeradius-server.orig/raddb/mods-available/ippool
4 +++ freeradius-server/raddb/mods-available/ippool
6 # DEFAULT Group == teachers, Pool-Name := "teachers"
7 # DEFAULT Group == other, Pool-Name := "DEFAULT"
9 -# ********* IF YOU CHANGE THE RANGE PARAMETERS YOU MUST *********
10 -# ********* THEN ERASE THE DB FILES *********
11 +# Note: If you change the range parameters you must then erase the
15 + # The main db file used to allocate addresses.
16 + filename = ${db_dir}/db.ippool
18 - # range-start,range-stop:
19 - # The start and end ip addresses for this pool.
20 + # The start and end ip addresses for this pool.
21 range_start = 192.0.2.1
22 range_stop = 192.0.2.254
25 - # The network mask used for this pool.
26 + # The network mask used for this pool.
27 netmask = 255.255.255.0
30 - # The gdbm cache size for the db files. Should
31 - # be equal to the number of ip's available in
33 + # The gdbm cache size for the db files. Should
34 + # be equal to the number of ip's available in
39 - # The main db file used to allocate addresses.
40 - session_db = ${db_dir}/db.ippool
43 - # Helper db index file used in multilink
44 + # Helper db index file used in multilink
45 ip_index = ${db_dir}/db.ipindex
48 - # If set, the Framed-IP-Address already in the
49 - # reply (if any) will be discarded, and replaced
50 - # with a Framed-IP-Address assigned here.
51 + # If set, the Framed-IP-Address already in the
52 + # reply (if any) will be discarded, and replaced
53 + # ith a Framed-IP-Address assigned here.
57 - # Specifies the maximum time in seconds that an
58 - # entry may be active. If set to zero, means
59 - # "no timeout". The default value is 0
60 + # Specifies the maximum time in seconds that an
61 + # entry may be active. If set to zero, means
62 + # "no timeout". The default value is 0
66 - # The key to use for the session database (which
67 - # holds the allocated ip's) normally it should
68 - # just be the nas ip/port (which is the default).
69 + # The key to use for the session database (which
70 + # holds the allocated ip's) normally it should
71 + # just be the nas ip/port (which is the default).
73 - # If your NAS sends the same value of NAS-Port
74 - # all requests, the key should be based on some
75 - # other attribute that is in ALL requests, AND
76 - # is unique to each machine needing an IP address.
77 - #key = "%{NAS-IP-Address} %{NAS-Port}"
78 + # If your NAS sends the same value of NAS-Port
79 + # all requests, the key should be based on some
80 + # other attribute that is in ALL requests, AND
81 + # is unique to each machine needing an IP address.
82 +# key = "%{NAS-IP-Address} %{NAS-Port}"
84 Index: freeradius-server/src/lib/valuepair.c
85 ===================================================================
86 --- freeradius-server.orig/src/lib/valuepair.c
87 +++ freeradius-server/src/lib/valuepair.c
88 @@ -109,6 +109,8 @@ VALUE_PAIR *pairalloc(TALLOC_CTX *ctx, D
92 + vp->length = da->flags.length;
94 talloc_set_destructor(vp, _pairfree);