<div dir="ltr">Hi,<div>I'm trying to write my own module for freeradius. I'd like to use a configuration file where i save some recursive structure. eg:</div><div><br></div><div>module_name <module_name> {</div>
<div>  var1 = val1</div><div>  var2 = val2</div><div>  </div><div>  subsection1 subsection1_name {</div><div>    var1_1 = val1_1</div><div>    var1_2 = val1_2</div><div>  }</div><div>....</div><div>....</div><div><br></div>
<div><div>  subsectionN subsectionN_name {</div><div>    varN_1 = valN_1</div><div>    varN_2 = valN_2</div><div>  }</div></div><div>}</div><div><br></div><div>I'm trying to realize a more simple data structure first, with only one subsection. An example: <a href="http://pastebin.com/JYfh3BuK">http://pastebin.com/JYfh3BuK</a> but i have a segfault.<br>
</div><div>Someone can help me with this implementation. Should i use PW_TYPE_SUBSECTION in the main module_config[] structure?</div><div>How can i manage the case where there are N subsection of the same type?</div><div>
Thanks</div></div>