Re: [Bro-Dev] Overload Bro Events

2018-04-12 Thread Robin Sommer
On Thu, Apr 12, 2018 at 14:44 -0500, you wrote: > > event overload%(c: connection%); > > event overload%(c: connection, h: header%); > > event overload%(c: connection, h: header, d: data%); > > Overloading is not supported for functions in general (function/event/hook). This has interesting

Re: [Bro-Dev] Overload Bro Events

2018-04-12 Thread Jon Siwek
On 4/12/18 2:23 PM, DW wrote: > Hello, > > it is possible to overload events in Bro based on the event-parameter > and trigger the "right" event based on the given parameter? > > E.g. I would define events like this > > event overload%(c: connection%); > event overload%(c: connection, h:

[Bro-Dev] Overload Bro Events

2018-04-12 Thread DW
Hello, it is possible to overload events in Bro based on the event-parameter and trigger the "right" event based on the given parameter? E.g. I would define events like this event overload%(c: connection%); event overload%(c: connection, h: header%); event overload%(c: connection, h: header,