[Bro-Dev] more set operators? (equality/subset)

Vern Paxson vern at corelight.com
Fri Jun 29 08:58:25 PDT 2018

> I assume what will at the moment happen with sets is that the pointers of
> records are checked for equality

Specifically, in my branch they are checked for whether the composite hash
index matches.  Happily, this works:

	type A: record {
		a: string;

	event bro_init()
		local i = A($a="a");
		local j = A($a="a");
		print set(i) | set(j);

when run prints


and if you change j to be $a="b" then you get:


This in fact suggests we could implement record equality by converting the
records to hash indices and then comparing those.


More information about the bro-dev mailing list