[Bro-Dev] enum namespacing

Seth Hall seth at icir.org
Thu Mar 17 06:35:40 PDT 2011

Does it makes sense that an enum would be in the name space it's declared within even if it's extending an enum type from another namespace?

My example:

module Software;

export {
	type Type: enum { UNKNOWN };

module HTTP;

redef enum Software::Type += { WEB_SERVER };

event bro_init()
	# I would expect this to be true, but it seems that WEB_SERVER was placed into the HTTP namespace and this doesn't work.
	print Software::WEB_SERVER;


Seth Hall
International Computer Science Institute
(Bro) because everyone has a network

More information about the bro-dev mailing list