[asterisk-commits] russell: branch group/security_events r199292 - in /team/group/security_event...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 5 15:33:48 CDT 2009
Author: russell
Date: Fri Jun 5 15:33:44 2009
New Revision: 199292
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199292
Log:
Add a couple more IEs
Modified:
team/group/security_events/include/asterisk/event_defs.h
team/group/security_events/main/event.c
team/group/security_events/security_events.txt
Modified: team/group/security_events/include/asterisk/event_defs.h
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/security_events/include/asterisk/event_defs.h?view=diff&rev=199292&r1=199291&r2=199292
==============================================================================
--- team/group/security_events/include/asterisk/event_defs.h (original)
+++ team/group/security_events/include/asterisk/event_defs.h Fri Jun 5 15:33:44 2009
@@ -48,6 +48,7 @@
/*! The state of a device has changed on _one_ server. This should not be used
* directly, in general. Use AST_EVENT_DEVICE_STATE instead. */
AST_EVENT_DEVICE_STATE_CHANGE = 0x06,
+ /*! A report of a security related event (see security_events.h) */
AST_EVENT_SECURITY = 0x07,
/*! Number of event types. This should be the last event type + 1 */
AST_EVENT_TOTAL = 0x08,
@@ -132,8 +133,10 @@
AST_EVENT_IE_LOCAL_ADDR = 0x0013,
AST_EVENT_IE_REMOTE_ADDR = 0x0014,
AST_EVENT_IE_EVENT_TV = 0x0015,
+ AST_EVENT_IE_REQUEST_TYPE = 0x0016,
+ AST_EVENT_IE_REQUEST_PARAMS = 0x0017,
/*! \brief Must be the last IE value +1 */
- AST_EVENT_IE_TOTAL = 0x0016,
+ AST_EVENT_IE_TOTAL = 0x0018,
};
/*!
Modified: team/group/security_events/main/event.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/security_events/main/event.c?view=diff&rev=199292&r1=199291&r2=199292
==============================================================================
--- team/group/security_events/main/event.c (original)
+++ team/group/security_events/main/event.c Fri Jun 5 15:33:44 2009
@@ -222,6 +222,8 @@
[AST_EVENT_IE_LOCAL_ADDR] = { AST_EVENT_IE_PLTYPE_STR, "LocalAddress" },
[AST_EVENT_IE_REMOTE_ADDR] = { AST_EVENT_IE_PLTYPE_STR, "RemoteAddress" },
[AST_EVENT_IE_EVENT_TV] = { AST_EVENT_IE_PLTYPE_STR, "EventTV" },
+ [AST_EVENT_IE_REQUEST_TYPE] = { AST_EVENT_IE_PLTYPE_STR, "RequestType" },
+ [AST_EVENT_IE_REQUEST_PARAMS] = { AST_EVENT_IE_PLTYPE_STR, "RequestParams" },
};
const char *ast_event_get_type_name(const struct ast_event *event)
Modified: team/group/security_events/security_events.txt
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/security_events/security_events.txt?view=diff&rev=199292&r1=199291&r2=199292
==============================================================================
--- team/group/security_events/security_events.txt (original)
+++ team/group/security_events/security_events.txt Fri Jun 5 15:33:44 2009
@@ -254,6 +254,13 @@
Content: This is the timestamp of when the event occurred.
Values: <seconds>-<microseconds> since epoch
+IE: RequestType
+Content: This is a service specific string that represents the invalid request
+
+IE: RequestParams
+Content: This is a service specific string that represents relevant parameters
+ given with a request that was considered invalid.
+
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
More information about the asterisk-commits
mailing list