[Bro] Access to record file dynamiclly
John Y
yjohn8697 at gmail.com
Wed May 2 03:54:51 PDT 2018
Hi !
Great community, i got helpfull advices from here.
I got this record:
type info: record
{
a: string;
}
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".
Any suggestion?
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20180502/1b55af0c/attachment.html
More information about the Bro
mailing list