How to define a link list in Bro

Dear all,

Does anyone know how to construct a link list in bro? When I try to define a type that represents a node, it needs to contain a field that has a type of itself, which bro forbid me to do so. I have also tried to redefine, but bro forbid me to change the type when I refine my node.

Thanks a lot.


That’s not something that the Bro scripting language supports. When you start getting into more advanced data structures like that, that’s often a sign that you need to write a plugin in C++ instead of trying to do this in script-land. What are you trying to accomplish with linked lists?