zeek/testing/btest/bifs
Robin Sommer 8bacb6eb3d New BiF record_field_vals() that returns the fields of a record in a
table with meta-information.

Example:

type r: record {
	a: count;
	b: string &default="Foo";
	c: double &optional;
	d: string &log;
};

event bro_init()
{
    local x: r = [$a=42, $d="Bar"];
    print record_fields(x);
}

This prints:

  {
  [a] = [type_name=record, log=F, value=42, default_val=<uninitialized>]
  [b] = [type_name=record, log=F, value=<uninitialized>, default_val=Foo],
  [c] = [type_name=record, log=F, value=<uninitialized>, default_val=<uninitialized>],
  [d] = [type_name=record, log=T, value=Bar, default_val=<uninitialized>],
  }

This is one more step in Seth's quest for full inspection support. :-)
2011-07-07 19:56:48 -07:00
..
count_to_addr.bro Merge remote branch 'origin/topic/seth/count_to_addr' 2011-04-19 15:52:16 -07:00
netbios-functions.bro Updates and tests for netbios name BiF. 2011-04-20 15:59:11 -04:00
records_fields.bro New BiF record_field_vals() that returns the fields of a record in a 2011-07-07 19:56:48 -07:00
string_splitting.bro Fixed another do_split bug and included a test for the fix. 2011-04-22 08:00:28 -04:00
unique_id-rnd.bro Merge remote branch 'origin/topic/robin/reporting' 2011-07-01 13:59:21 -07:00
unique_id.bro A new bif unique_id(prefix) that returns a string that's unique across 2011-06-07 17:57:22 -07:00