GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCS / dev > lcs_test / mv2304
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <ITC/ITC_drvdefs.h>
#include <ITC/ITC_pubdefs.h>
#include <LCS/LCS_msgs.h>
#include <LCS_prvdefs.h>
#include <LCS_prvtest.h>
Functions | |
static unsigned int | length (void *prm, LTX_Engine *txe, LCBD_cl_event *cl) |
Corrupt the message length. | |
static unsigned int | sequence (void *prm, LTX_Engine *txe, LCBD_cl_event *cl) |
The mis-sequence test point plug-in. | |
static unsigned int | stall (void *prm, LTX_Engine *txe, LCBD_cl_event *cl) |
The stall test point plug-in. | |
static unsigned int | transaction (void *prm, LTX_Engine *txe, LCBD_cl_event *cl) |
The transaction number test point plug-in. | |
unsigned int | LCS_testLength (ITC_QueueID qid) |
Deliberately damage a message length. | |
unsigned int | LCS_testSequence (ITC_QueueID qid, int tgt) |
Deliberately damage a packet sequence count. | |
unsigned int | LCS_testStall (ITC_QueueID qid, int tgt) |
Deliberately stall a transmission. | |
unsigned int | LCS_testTransaction (ITC_QueueID qid, int tgt) |
Deliberately damage a packet transaction number. |
CVS $Id: LCS_robust.c,v 1.4 2011/03/28 22:49:56 apw Exp $
unsigned int LCS_testLength | ( | ITC_QueueID | qid | ) |
Deliberately damage a message length.
qid | (in) Queue/engine to corrupt |
References length().
unsigned int LCS_testSequence | ( | ITC_QueueID | qid, | |
int | tgt | |||
) |
Deliberately damage a packet sequence count.
qid | (in) Queue/engine to corrupt | |
tgt | (in) Target packet to corrupt |
References sequence().
unsigned int LCS_testStall | ( | ITC_QueueID | qid, | |
int | tgt | |||
) |
Deliberately stall a transmission.
qid | (in) Queue/engine to stall | |
tgt | (in) Target packet to stall |
References stall().
unsigned int LCS_testTransaction | ( | ITC_QueueID | qid, | |
int | tgt | |||
) |
Deliberately damage a packet transaction number.
qid | (in) Queue/engine to corrupt | |
tgt | (in) Target packet to corrupt |
References transaction().
static unsigned int length | ( | void * | prm, | |
LTX_Engine * | txe, | |||
LCBD_cl_event * | cl | |||
) | [static] |
Corrupt the message length.
prm | (in) User parameter | |
txe | (in) LTX transmit engine | |
cl | (in) LCB command list |
References LCS_PRT_M_END, LCS_PRT_M_OPCD, LCS_PRT_V_END, and LCS_PRT_V_OPCD.
Referenced by LCS_testLength().
static unsigned int sequence | ( | void * | prm, | |
LTX_Engine * | txe, | |||
LCBD_cl_event * | cl | |||
) | [static] |
The mis-sequence test point plug-in.
prm | (in) User parameter | |
txe | (in) LTX transmit engine | |
cl | (in) LCB command list |
References LCS_PRT_M_END, LCS_PRT_M_OPCD, LCS_PRT_V_END, and LCS_PRT_V_OPCD.
Referenced by LCS_testSequence().
static unsigned int stall | ( | void * | prm, | |
LTX_Engine * | txe, | |||
LCBD_cl_event * | cl | |||
) | [static] |
The stall test point plug-in.
prm | (in) User parameter | |
txe | (in) LTX transmit engine | |
cl | (in) LCB command list |
References LCS_PRT_M_END, LCS_PRT_M_OPCD, LCS_PRT_V_END, and LCS_PRT_V_OPCD.
Referenced by LCS_testStall().
static unsigned int transaction | ( | void * | prm, | |
LTX_Engine * | txe, | |||
LCBD_cl_event * | cl | |||
) | [static] |
The transaction number test point plug-in.
prm | (in) User parameter | |
txe | (in) LTX transmit engine | |
cl | (in) LCB command list |
References LCS_PRT_M_END, LCS_PRT_M_OPCD, LCS_PRT_M_TRID, LCS_PRT_V_END, LCS_PRT_V_OPCD, and LCS_PRT_V_TRID.
Referenced by LCS_testTransaction().