mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Merge remote-tracking branch 'origin/topic/seth/pf_ring_support'
* origin/topic/seth/pf_ring_support: Added pf_ring load balancing support to the scripting layer.
This commit is contained in:
commit
eda2245e9e
2 changed files with 32 additions and 0 deletions
10
src/bro.bif
10
src/bro.bif
|
@ -791,6 +791,16 @@ function getenv%(var: string%): string
|
|||
return new StringVal(env_val);
|
||||
%}
|
||||
|
||||
function setenv%(var: string, val: string%): bool
|
||||
%{
|
||||
int result = setenv(var->AsString()->CheckString(),
|
||||
val->AsString()->CheckString(), 1);
|
||||
|
||||
if ( result < 0 )
|
||||
return new Val(0, TYPE_BOOL);
|
||||
return new Val(1, TYPE_BOOL);
|
||||
%}
|
||||
|
||||
function sqrt%(x: double%): double
|
||||
%{
|
||||
if ( x < 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue