Information about branch v3.0.x

Geaaru geaaru at gmail.com
Fri May 29 19:30:44 CEST 2015


Hi,

a stupid question...

I see that on branch v3.0.x modules use new syntax for export symbol
(with MOD_POST_AUTH,etc.).

Instead in freeradius-3.0.8 it is used old syntax:

extern module_t rlm_sqlippool;
module_t rlm_sqlippool = { 
>-RLM_MODULE_INIT,
>-"sqlippool",
>-RLM_TYPE_THREAD_SAFE,>>-/* type */
>-sizeof(rlm_sqlippool_t),
>-module_config,
>-mod_instantiate,>->-/* instantiation */
>-NULL,>>->->-/* detach */
>-{
>->-NULL,>>->-/* authentication */
>->-NULL,>>->-/* authorization */
>->-NULL,>>->-/* preaccounting */
>->-mod_accounting,>>-/* accounting */
>->-NULL,>>->-/* checksimul */
>->-NULL,>>->-/* pre-proxy */
>->-NULL,>>->-/* post-proxy */
>->-mod_post_auth>>-/* post-auth */
>-},
};

This means that release 3.0.9 will use new syntax like this:

extern module_t rlm_sqlippool;
module_t rlm_sqlippool = {
        .magic          = RLM_MODULE_INIT,
        .name           = "sqlippool",
        .type           = RLM_TYPE_THREAD_SAFE,
        .inst_size      = sizeof(rlm_sqlippool_t),
        .config         = module_config,
        .instantiate    = mod_instantiate,
        .methods = {
                [MOD_ACCOUNTING]        = mod_accounting,
                [MOD_POST_AUTH]         = mod_post_auth
        },
};

Thank you very much in advance.

Geaaru


More information about the Freeradius-Devel mailing list