]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
notes on which entries are "const"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 18 Sep 2018 18:10:39 +0000 (14:10 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 19 Sep 2018 14:48:48 +0000 (10:48 -0400)
src/modules/proto_radius/proto_radius_udp.c

index 1f8d5e55884a2022c780a482c2c590777a9e49ed..111018ff39bdc9974dac6062632a9da91bd083c7 100644 (file)
@@ -39,10 +39,18 @@ extern fr_app_io_t proto_radius_udp;
 
 typedef struct proto_radius_udp_t {
        char const                      *name;                  //!< socket name
-       CONF_SECTION                    *cs;                    //!< our configuration
-
        int                             sockfd;
 
+       fr_io_address_t                 *connection;            //!< for connected sockets.
+
+       RADCLIENT_LIST                  *clients;               //!< local clients
+
+       /*
+        *      The remaining items are "const" after mod_bootstrap()
+        *      and mod_instantiate() are called.
+        */
+       CONF_SECTION                    *cs;                    //!< our configuration
+
        fr_ipaddr_t                     ipaddr;                 //!< IP address to listen on.
 
        char const                      *interface;             //!< Interface to bind to.
@@ -65,11 +73,6 @@ typedef struct proto_radius_udp_t {
        fr_trie_t                       *trie;                  //!< for parsed networks
        fr_ipaddr_t                     *allow;                 //!< allowed networks for dynamic clients
        fr_ipaddr_t                     *deny;                  //!< denied networks for dynamic clients
-
-       fr_io_address_t                 *connection;            //!< for connected sockets.
-
-       RADCLIENT_LIST                  *clients;               //!< local clients
-
 } proto_radius_udp_t;