Bro script declaration ordering

Description

During one of the scripting exercises I noticed odd behavior with items declared in the global scope:

To declare a function, bro 2.3 forced me to do it at the top of the file. On the exercise with the redef of the grid ftp size variable I noticed the same issue with redef, it required me to put the redef at the very top of the file.

Robin asked me to open a ticket and mentioned this was low priority.

Environment

Bro con training VM

Assignee

Unassigned

Reporter

p

Labels

External issue ID

None

Components

Affects versions

Priority

Trivial
Configure