[Bro] broccoli and enum
sanreich at gmx.de
Tue Jul 31 17:39:21 PDT 2007
i'm playing around with broccoli and i have problems with events that
contain enum type. the event is defined in a policy and i can use it for
inter-bro-comunication, but broccoli ignores it. calling the event
without the enum type argument works well.
where is my mistake?
c code (modified 'broping'):
bro_mytest(BroConn *conn, void *data, uint32 *num, BroRecord *status)
/*just print a simple message....*/
printf("event mytest received!\n");
bro_event_registry_add(bc, "mytest", (BroEventFunc) bro_mytest, NULL) ;
type testtype : enum
# 1) does'nt work with broccoli!
event mytest(123, first_type);
# 2) this works!
More information about the Bro