]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
sqlippool should be called in `accounting ...` sections
authorNick Porter <nick@portercomputing.co.uk>
Fri, 2 Feb 2024 17:52:53 +0000 (17:52 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 7 Feb 2024 11:21:37 +0000 (11:21 +0000)
So that the correct method is used.

raddb/sites-available/default

index 92f695c5cd4cb01ab50907cc1f3efa7e3d81b96f..d04045958a4256d47a72052cfd48dadcc4781b57 100644 (file)
@@ -1391,35 +1391,54 @@ recv Accounting-Request {
 #  Session start
 #
 accounting Start {
-
+       #
+       #  Refresh leases when we see a start.
+       #
+       #  Ensure that &control.IP-Pool.Name is set to determine which
+       #  pool of IPs are used.  Set this in `recv Accounting-Request` so
+       #  it is available for all the accounting sections.
+       #
+#      sqlippool
 }
 
 #
 #  Session stop
 #
 accounting Stop {
-
+       #
+       #  Return an address to the IP Pool when we see a stop record.
+       #
+#      sqlippool
 }
 
 #
 #  Session is still alive
 #
 accounting Interim-Update {
-
+       #
+       #  Refresh leases when we see an alive.
+       #
+#      sqlippool
 }
 
 #
 #  The NAS has just booted up.
 #
 accounting Accounting-On {
-
+       #
+       #  Return all addresses related to this NAS to the IP Pool
+       #
+#      sqlippool
 }
 
 #
 #  The NAS is about to go down
 #
 accounting Accounting-Off {
-
+       #
+       #  Return all addresses related to this NAS to the IP Pool
+       #
+#      sqlippool
 }
 
 #
@@ -1487,15 +1506,6 @@ send Accounting-Response {
 #      radutmp
 #      sradutmp
 
-       #
-       #  Refresh leases when we see a start or alive. Return an address to
-       #  the IP Pool when we see a stop record.
-       #
-       #  Ensure that &control.IP-Pool.Name is set to determine which
-       #  pool of IPs are used.
-       #
-#      sqlippool
-
        #
        #  Log traffic to an SQL database.
        #