[Bro] Access to record file dynamiclly
Jon Siwek
jsiwek at corelight.com
Wed May 2 07:36:02 PDT 2018
On 5/2/18 5:54 AM, John Y wrote:
> And variable which his value is the record's field name:
> local field_name: string = 'a';
>
> I try to assign value to a field using field_name, maby like this:
> local myrec = info();
> myrec$field_name = "some value";
>
> But that command try to find the field "field_name".
I don't think there's currently a way to get write-access via dynamic
field name. Though dynamic read-access is possible via the
record_fields() function.
- Jon
More information about the Bro
mailing list