l2tpd_packet: implement l2tp_tx_stop_ccn

This commit is contained in:
Alexander Couzens 2016-10-25 11:25:40 +02:00
parent 39c2f5a323
commit 4b4becaa23
2 changed files with 13 additions and 0 deletions

View File

@ -327,6 +327,18 @@ int l2tp_tx_scc_rp(struct l2tpd_connection *l2c)
return l2tp_msgb_tx(msg);
}
int l2tp_tx_stop_ccn(struct l2tpd_connection *l2c)
{
struct msgb *msg = l2tp_msgb_alloc();
/* FIXME: use pointer instead of this call */
msgb_avp_put_msgt(msg, VENDOR_IETF, IETF_CTRLMSG_STOPCCN);
msgb_avp_put_digest(msg);
msg->dst = l2c;
return l2tp_msgb_tx(msg);
}
int l2tp_tx_tc_rq(struct l2tpd_session *l2s)
{
struct msgb *msg = l2tp_msgb_alloc();

View File

@ -5,6 +5,7 @@ struct l2tpd_connection;
struct l2tpd_session;
int l2tp_tx_scc_rp(struct l2tpd_connection *l2c);
int l2tp_tx_stop_ccn(struct l2tpd_connection *l2c);
int l2tp_tx_tc_rq(struct l2tpd_session *l2s);
int l2tp_tx_altc_rq(struct l2tpd_session *l2s);
int l2tp_tx_ic_rp(struct l2tpd_session *l2s);