]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
notes on what's done
authorAlan T. DeKok <aland@freeradius.org>
Fri, 10 May 2019 13:31:14 +0000 (09:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 10 May 2019 13:31:14 +0000 (09:31 -0400)
doc/source/todo.md

index 10959f3e79eebfda897154033c31e0932e0a274e..8a18d79e0d1cf0824608e9d8b575a10658b31813 100644 (file)
@@ -148,10 +148,19 @@ in those sections.
 
 We will hope that the packet names are different in every protocol.
 
-The `parse_rules()` should take a list of similar names, so that the
-`unlang_compile()` function can cross-correlate, and call the right
-function.
-
-The `subrequest` functionality also needs to be updated to handle
-this.  Initially just by allowing anything.  Or, later relying on the
-registry and packet types?
+The processing modules can now export a list of *additional* methods
+that they take.  The `*module_by_name_and_method()` function walks
+down that list:
+
+  * if method[COMPONTENT] is set, then return that
+  * otherwise walk over the named methods for a module, looking
+    for a match to the current section we're compiling.
+    e.g. "recv Access-Request"
+  * if that still isn't found, then look up the list of allowed
+    methods for this processing section.  Then, walk over that list
+    and the module list in O(N*M), to see if there's a matching
+    method
+
+The last step is more rare, so it shouldn't affect speed much.
+
+The processing sections don't (yet) export such additional methods.