l2tpd_fsm: answer to a to STOP CCN with an ACK
still a TODO to tear down the fsm and struct
This commit is contained in:
parent
5ce4fc112c
commit
f9a4590f2d
|
@ -23,17 +23,24 @@ static void l2tp_ctrl_s_wait_ctl_conn(struct osmo_fsm_inst *fi, uint32_t event,
|
||||||
l2tp_tx_ack(l2c);
|
l2tp_tx_ack(l2c);
|
||||||
osmo_fsm_inst_state_chg(fi, L2CC_S_ESTABLISHED, 0, 0);
|
osmo_fsm_inst_state_chg(fi, L2CC_S_ESTABLISHED, 0, 0);
|
||||||
break;
|
break;
|
||||||
|
case L2CC_E_RX_STOP_CCN:
|
||||||
|
l2tp_tx_ack(l2c);
|
||||||
|
/* FIXME: tear down whole l2c */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void l2tp_ctrl_s_established(struct osmo_fsm_inst *fi, uint32_t event, void *data)
|
static void l2tp_ctrl_s_established(struct osmo_fsm_inst *fi, uint32_t event, void *data)
|
||||||
{
|
{
|
||||||
|
struct l2tpd_connection *l2c = fi->priv;
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case L2CC_E_LOCAL_CLOSE_REQ:
|
case L2CC_E_LOCAL_CLOSE_REQ:
|
||||||
/* FIXME: Send StopCCN */
|
/* FIXME: Send StopCCN */
|
||||||
break;
|
break;
|
||||||
case L2CC_E_RX_STOP_CCN:
|
case L2CC_E_RX_STOP_CCN:
|
||||||
/* FIXME */
|
l2tp_tx_ack(l2c);
|
||||||
|
/* FIXME: tear down whole l2c */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue