cosmetic: more comments; spelling fixes in comments

Change-Id: I4939a386ac48e4e66bce9784d9a1539426c41aae
This commit is contained in:
Harald Welte 2019-12-02 20:10:59 +01:00
parent 4ccd2fca84
commit 0a68497324
2 changed files with 16 additions and 4 deletions

View File

@ -63,15 +63,18 @@ int bankd_conn_send_rspro(struct bankd_client *bc, RsproPDU_t *rspro)
} }
/*********************************************************************** /***********************************************************************
* bankd connection FSM: Remsim Client connection to Bankd * client-side FSM for RSPRO connection to remsim-bankd
*
* This is part of remsim-client and manages the connection to remsim-bankd,
* over which actual TPDU exchanges happen.
***********************************************************************/ ***********************************************************************/
enum bankd_conn_fsm_state { enum bankd_conn_fsm_state {
/* waiting for initial connectiong to remsim-bankd */ /* waiting for initial connection to remsim-bankd */
BDC_ST_INIT, BDC_ST_INIT,
/* bankd connection established, waiting for ClientConnectRes */ /* bankd connection established, waiting for ClientConnectRes */
BDC_ST_ESTABLISHED, BDC_ST_ESTABLISHED,
/* bankd connection etsablished, ClientConnect succeeded */ /* bankd connection established, ClientConnect succeeded */
BDC_ST_CONNECTED, BDC_ST_CONNECTED,
/* connection lost, we're waiting for a re-establish */ /* connection lost, we're waiting for a re-establish */
BDC_ST_REESTABLISH, BDC_ST_REESTABLISH,

View File

@ -44,7 +44,16 @@
#define T2_RECONNECT 10 #define T2_RECONNECT 10
/*********************************************************************** /***********************************************************************
* server connection FSM: remsim-{client,bankd} to remsim-server * client-side FSM for a RSPRO connection to remsim-server
*
* This implements the TCP/IPA client side of an RSPRO connection between
* a logical (TCP-level) client implementation and a remote RSPRO server.
*
* 'client' and 'server' here strictly refer to RSPRO protocol roles, not
* to be confused with the remsim-client or remsim-server!
*
* Specifically, this RSPRO client FSM is used by both remsim-client and
* remsim-bankd for their RSPRO control connection to remsim-server.
***********************************************************************/ ***********************************************************************/
static void push_and_send(struct ipa_client_conn *ipa, struct msgb *msg_tx) static void push_and_send(struct ipa_client_conn *ipa, struct msgb *msg_tx)