summaryrefslogtreecommitdiff
path: root/cesar/cp/msg/inc/cm_link_stats.h
diff options
context:
space:
mode:
authormercadie2009-09-15 16:41:35 +0000
committermercadie2009-09-15 16:41:35 +0000
commit460f54cca811672b33a1229cde552c1060cc4d20 (patch)
treef1602bea35a18c44badb0ee05fa825bb94b55702 /cesar/cp/msg/inc/cm_link_stats.h
parentadbed653ba073feee0d651bc19cd9537f91872d2 (diff)
* add CM_LINK_STATS_REQ support
- add cp_sta_action_process_cm_nw_stats_req to support the message event - integration in fsm - unit test git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5560 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp/msg/inc/cm_link_stats.h')
-rw-r--r--cesar/cp/msg/inc/cm_link_stats.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/cesar/cp/msg/inc/cm_link_stats.h b/cesar/cp/msg/inc/cm_link_stats.h
new file mode 100644
index 0000000000..3561b7f2d0
--- /dev/null
+++ b/cesar/cp/msg/inc/cm_link_stats.h
@@ -0,0 +1,52 @@
+#ifndef cp_msg_inc_cm_link_stats_h
+#define cp_msg_inc_cm_link_stats_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2009 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file cp/msg/inc/cm_link_stats.h
+ * \brief definitions for CM_LINK_STATS interpretation
+ * \ingroup cp_msg
+ *
+ */
+
+enum cp_msg_cm_link_stats_reqtype_t
+{
+ CM_LINK_STATS_REQTYPE_RESET = 0x00,
+ CM_LINK_STATS_REQTYPE_GET,
+ CM_LINK_STATS_REQTYPE_GET_AND_RESET,
+};
+typedef enum cp_msg_cm_link_stats_reqtype_t cp_msg_cm_link_stats_reqtype_t;
+
+enum cp_msg_cm_link_stats_restype_t
+{
+ CM_LINK_STATS_RESTYPE_SUCCESS = 0,
+ CM_LINK_STATS_RESTYPE_FAILURE = 1,
+};
+typedef enum cp_msg_cm_link_stats_restype_t cp_msg_cm_link_stats_restype_t;
+
+/** Data associated with a CM_LINK_STATS.REQ message. */
+struct cp_msg_cm_link_stats_req_t
+{
+ /** Request type. */
+ cp_msg_cm_link_stats_reqtype_t req_type;
+ /** Request identification. */
+ u8 req_id;
+ /** Network identifier. */
+ cp_nid_t nid;
+ /** Link identifier. */
+ u8 lid;
+ /** Transmit link flag. */
+ bool transmit;
+ /** Management link. */
+ bool mgmt_flag;
+ /** Mac address. */
+ mac_t mac;
+};
+typedef struct cp_msg_cm_link_stats_req_t cp_msg_cm_link_stats_req_t;
+
+#endif /* cp_msg_inc_cm_link_stats_h */