mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
[FIX] small codestyle changes
This commit is contained in:
parent
8e2c269c2e
commit
fef8476690
2 changed files with 2 additions and 4 deletions
|
@ -248,7 +248,7 @@ export {
|
||||||
##
|
##
|
||||||
## Returns: T, if successful, else F.
|
## Returns: T, if successful, else F.
|
||||||
global flow_mod: function(dpid: count, flow_mod: ofp_flow_mod): bool
|
global flow_mod: function(dpid: count, flow_mod: ofp_flow_mod): bool
|
||||||
&default=function(dpid: count, flow_mod:ofp_flow_mod): bool
|
&default=function(dpid: count, flow_mod: ofp_flow_mod): bool
|
||||||
{
|
{
|
||||||
Reporter::warning("Openflow::flow_mod function not implemented. Please load the right Openflow plugin");
|
Reporter::warning("Openflow::flow_mod function not implemented. Please load the right Openflow plugin");
|
||||||
return F;
|
return F;
|
||||||
|
|
|
@ -69,9 +69,7 @@ function convert(v: any, only_loggable: bool &default=F, field_escape_pattern: p
|
||||||
local field_desc = ft[field];
|
local field_desc = ft[field];
|
||||||
# replace the escape pattern in the field.
|
# replace the escape pattern in the field.
|
||||||
if( field_escape_pattern in field )
|
if( field_escape_pattern in field )
|
||||||
{
|
|
||||||
field = cat(sub(field, field_escape_pattern, ""));
|
field = cat(sub(field, field_escape_pattern, ""));
|
||||||
}
|
|
||||||
if ( field_desc?$value && (!only_loggable || field_desc$log) )
|
if ( field_desc?$value && (!only_loggable || field_desc$log) )
|
||||||
{
|
{
|
||||||
local onepart = cat("\"", field, "\": ", JSON::convert(field_desc$value, only_loggable));
|
local onepart = cat("\"", field, "\": ", JSON::convert(field_desc$value, only_loggable));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue