diff --git a/doc/scripts/builtins.rst b/doc/scripts/builtins.rst index 322aafc2cf..b9febb176c 100644 --- a/doc/scripts/builtins.rst +++ b/doc/scripts/builtins.rst @@ -663,20 +663,12 @@ scripting language supports the following built-in attributes. ``&synchronized`` variable is automatically propagated to all peers when it changes. -.. bro:attr:: &postprocessor - -.. TODO: needs to be documented. - .. bro:attr:: &encrypt Encrypts files right before writing them to disk. .. TODO: needs to be documented in more detail. -.. bro:attr:: &match - -.. TODO: needs to be documented. - .. bro:attr:: &raw_output Opens a file in raw mode, i.e., non-ASCII characters are not @@ -710,6 +702,3 @@ scripting language supports the following built-in attributes. .. TODO: needs documented -.. bro:attr:: (&tracked) - -.. TODO: needs documented or removed if it's not used anywhere. diff --git a/src/Attr.cc b/src/Attr.cc index 6cc582f053..244d1e1687 100644 --- a/src/Attr.cc +++ b/src/Attr.cc @@ -14,8 +14,8 @@ const char* attr_name(attr_tag t) "&rotate_interval", "&rotate_size", "&add_func", "&delete_func", "&expire_func", "&read_expire", "&write_expire", "&create_expire", - "&persistent", "&synchronized", "&postprocessor", - "&encrypt", "&match", + "&persistent", "&synchronized", + "&encrypt", "&raw_output", "&mergeable", "&priority", "&group", "&log", "&error_handler", "&type_column", "(&tracked)", @@ -337,11 +337,6 @@ void Attributes::CheckAttr(Attr* a) Error("&rotate_size only applicable to files"); break; - case ATTR_POSTPROCESSOR: - if ( type->Tag() != TYPE_FILE ) - Error("&postprocessor only applicable to files"); - break; - case ATTR_ENCRYPT: if ( type->Tag() != TYPE_FILE ) Error("&encrypt only applicable to files"); diff --git a/src/Attr.h b/src/Attr.h index c9a0dedb33..c3e05d4762 100644 --- a/src/Attr.h +++ b/src/Attr.h @@ -25,9 +25,7 @@ typedef enum { ATTR_EXPIRE_CREATE, ATTR_PERSISTENT, ATTR_SYNCHRONIZED, - ATTR_POSTPROCESSOR, ATTR_ENCRYPT, - ATTR_MATCH, ATTR_RAW_OUTPUT, ATTR_MERGEABLE, ATTR_PRIORITY, diff --git a/src/File.h b/src/File.h index 8e3d0ca6e7..a37b7fe0a6 100644 --- a/src/File.h +++ b/src/File.h @@ -56,7 +56,7 @@ public: // Rotates the logfile. Returns rotate_info. RecordVal* Rotate(); - // Set &rotate_interval, &rotate_size, &postprocessor, + // Set &rotate_interval, &rotate_size, // and &raw_output attributes. void SetAttrs(Attributes* attrs); diff --git a/src/parse.y b/src/parse.y index 0385c1c4e1..079fc16c43 100644 --- a/src/parse.y +++ b/src/parse.y @@ -17,7 +17,7 @@ %token TOK_STRING TOK_SUBNET TOK_SWITCH TOK_TABLE %token TOK_TIME TOK_TIMEOUT TOK_TIMER TOK_TYPE TOK_UNION TOK_VECTOR TOK_WHEN -%token TOK_ATTR_ADD_FUNC TOK_ATTR_ATTR TOK_ATTR_ENCRYPT TOK_ATTR_DEFAULT +%token TOK_ATTR_ADD_FUNC TOK_ATTR_ENCRYPT TOK_ATTR_DEFAULT %token TOK_ATTR_OPTIONAL TOK_ATTR_REDEF TOK_ATTR_ROTATE_INTERVAL %token TOK_ATTR_ROTATE_SIZE TOK_ATTR_DEL_FUNC TOK_ATTR_EXPIRE_FUNC %token TOK_ATTR_EXPIRE_CREATE TOK_ATTR_EXPIRE_READ TOK_ATTR_EXPIRE_WRITE diff --git a/src/scan.l b/src/scan.l index 4e1a66144e..bf4cd76f23 100644 --- a/src/scan.l +++ b/src/scan.l @@ -319,7 +319,6 @@ vector return TOK_VECTOR; when return TOK_WHEN; &add_func return TOK_ATTR_ADD_FUNC; -&attr return TOK_ATTR_ATTR; &create_expire return TOK_ATTR_EXPIRE_CREATE; &default return TOK_ATTR_DEFAULT; &delete_func return TOK_ATTR_DEL_FUNC;