mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Deprecate Plugin::HookCallFunction(), replace with HookFunctionCall()
This also changes the argument type of Func::operator() to zeek::Args* to allow plugins to be able to alter function arguments in place as was previously documented.
This commit is contained in:
parent
46c5dea733
commit
272db640aa
27 changed files with 417 additions and 77 deletions
|
@ -43,7 +43,7 @@ bool Discarder::NextPacket(const IP_Hdr* ip, int len, int caplen)
|
|||
|
||||
try
|
||||
{
|
||||
discard_packet = check_ip->operator()(args)->AsBool();
|
||||
discard_packet = check_ip->operator()(&args)->AsBool();
|
||||
}
|
||||
|
||||
catch ( InterpreterException& e )
|
||||
|
@ -98,7 +98,7 @@ bool Discarder::NextPacket(const IP_Hdr* ip, int len, int caplen)
|
|||
|
||||
try
|
||||
{
|
||||
discard_packet = check_tcp->operator()(args)->AsBool();
|
||||
discard_packet = check_tcp->operator()(&args)->AsBool();
|
||||
}
|
||||
|
||||
catch ( InterpreterException& e )
|
||||
|
@ -122,7 +122,7 @@ bool Discarder::NextPacket(const IP_Hdr* ip, int len, int caplen)
|
|||
|
||||
try
|
||||
{
|
||||
discard_packet = check_udp->operator()(args)->AsBool();
|
||||
discard_packet = check_udp->operator()(&args)->AsBool();
|
||||
}
|
||||
|
||||
catch ( InterpreterException& e )
|
||||
|
@ -142,7 +142,7 @@ bool Discarder::NextPacket(const IP_Hdr* ip, int len, int caplen)
|
|||
|
||||
try
|
||||
{
|
||||
discard_packet = check_icmp->operator()(args)->AsBool();
|
||||
discard_packet = check_icmp->operator()(&args)->AsBool();
|
||||
}
|
||||
|
||||
catch ( InterpreterException& e )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue