]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add explanitory comment for alive_update query
authorNick Porter <nick@portercomputing.co.uk>
Mon, 14 Sep 2020 08:00:37 +0000 (09:00 +0100)
committerAlan DeKok <aland@freeradius.org>
Wed, 16 Sep 2020 12:46:53 +0000 (08:46 -0400)
raddb/mods-config/sql/ippool-dhcp/mssql/queries.conf
raddb/mods-config/sql/ippool-dhcp/mysql/queries.conf
raddb/mods-config/sql/ippool-dhcp/oracle/queries.conf
raddb/mods-config/sql/ippool-dhcp/postgresql/queries.conf
raddb/mods-config/sql/ippool-dhcp/sqlite/queries.conf

index 656704a093ba1357370a341f558266482810f7fd..9b49309dd76312fa380ddb25cb4e71e854cc92f2 100644 (file)
@@ -201,7 +201,9 @@ start_update = "\
 
 #
 #  This query extends an existing lease (or offer) when a DHCP REQUEST packet
-#  arrives
+#  arrives.  This query must update a row when a lease is succesfully requested
+#  - queries that update no rows will result in a NAK reply.  In this example
+#  incrementing "counter" is used to achieve this.
 #
 alive_update = "\
        UPDATE ${ippool_table} \
index 21c69d43959268b380dd932dca966539fc6dee3e..2ac6b081ee44a21ba46d4b0f40a43cec00e68f61 100644 (file)
@@ -165,7 +165,9 @@ start_update = "\
 
 #
 #  This query extends an existing lease (or offer) when a DHCP REQUEST packet
-#  arrives
+#  arrives.  This query must update a row when a lease is succesfully requested
+#  - queries that update no rows will result in a NAK reply.  In this example
+#  incrementing "counter" is used to achieve this.
 #
 alive_update = "\
        UPDATE ${ippool_table} \
index 92be269c0fc6f48e8715cac8e42f3bb7e0e818b1..5bbc79b47d42b5232c596782cb35fc96ab226d0b 100644 (file)
@@ -139,7 +139,9 @@ start_commit = "COMMIT"
 
 #
 #  This query extends an existing lease (or offer) when a DHCP REQUEST packet
-#  arrives
+#  arrives.  This query must update a row when a lease is succesfully requested
+#  - queries that update no rows will result in a NAK reply.  In this example
+#  incrementing "counter" is used to achieve this.
 #
 alive_update = "\
        UPDATE ${ippool_table} \
index 8b13013685d7a58ed21ab9064658c32cc810d8d2..41bd4115cca38d9d34b08824e08987a9e6b6a707 100644 (file)
@@ -235,7 +235,9 @@ start_update = "\
 
 #
 #  This query extends an existing lease (or offer) when a DHCP REQUEST packet
-#  arrives
+#  arrives.  This query must update a row when a lease is succesfully requested
+#  - queries that update no rows will result in a NAK reply.  In this example
+#  incrementing "counter" is used to achieve this.
 #
 alive_update = "\
        UPDATE ${ippool_table} \
index 7f10438338a6b28c68f61ccf89021211103596d8..ddda26c81a46bfeb18519f7712f210f1bf4d8b06 100644 (file)
@@ -178,7 +178,9 @@ start_update = "\
 
 #
 #  This query extends an existing lease (or offer) when a DHCP REQUEST packet
-#  arrives
+#  arrives.  This query must update a row when a lease is succesfully requested
+#  - queries that update no rows will result in a NAK reply.  In this example
+#  incrementing "counter" is used to achieve this.
 #
 alive_update = "\
        UPDATE ${ippool_table} \