Tidy-up multicast documentation
* Create a doxygen group and add files to it, so that documents appear as modules rather than simply under files * Document plenty of functions, macros, constants, data types which were previously undocumented * Re-structure some doxygen comments to improve structure and readability
This commit is contained in:
parent
a4e7cc29e8
commit
5efb3f0769
10 changed files with 203 additions and 72 deletions
|
@ -27,12 +27,16 @@
|
|||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/**
|
||||
* \addtogroup uip6-multicast
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* \file
|
||||
* Header file for IPv6 multicast forwarding stats maintenance
|
||||
* Header file for IPv6 multicast forwarding stats maintenance
|
||||
*
|
||||
* \author
|
||||
* George Oikonomou - <oikonomou@users.sourceforge.net>
|
||||
* George Oikonomou - <oikonomou@users.sourceforge.net>
|
||||
*/
|
||||
#ifndef UIP_MCAST6_STATS_H_
|
||||
#define UIP_MCAST6_STATS_H_
|
||||
|
@ -56,15 +60,35 @@
|
|||
/*---------------------------------------------------------------------------*/
|
||||
/* Stats datatype */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/**
|
||||
* \brief A data structure used to maintain multicast stats
|
||||
*
|
||||
* Each engine can extend this structure via the engine_stats field
|
||||
*/
|
||||
typedef struct uip_mcast6_stats {
|
||||
/** Count of unique datagrams received */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_in_unique;
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_in_all; /* At layer 3 */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_in_ours; /* Unique and we are a group member */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_fwd; /* Forwarded by us but we are not the seed */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_out; /* We are the seed */
|
||||
|
||||
/** Count of all datagrams received */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_in_all;
|
||||
|
||||
/** Count of datagrams received for a group that we have joined */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_in_ours;
|
||||
|
||||
/** Count of datagrams forwarded by us but we are not the seed */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_fwd;
|
||||
|
||||
/** Count of multicast datagrams originated by us */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_out;
|
||||
|
||||
/** Count of malformed multicast datagrams seen by us */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_bad;
|
||||
|
||||
/** Count of multicast datagrams correclty formed but dropped by us */
|
||||
UIP_MCAST6_STATS_DATATYPE mcast_dropped;
|
||||
void *engine_stats; /* Opaque pointer to an engine's additional stats */
|
||||
|
||||
/** Opaque pointer to an engine's additional stats */
|
||||
void *engine_stats;
|
||||
} uip_mcast6_stats_t;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Access macros */
|
||||
|
@ -89,3 +113,5 @@ extern uip_mcast6_stats_t uip_mcast6_stats;
|
|||
void uip_mcast6_stats_init(void *stats);
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#endif /* UIP_MCAST6_STATS_H_ */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue