l2tpd: rename unix_rsl_oml_cb -> unix_read_cb:

it's used by all unix sockets
This commit is contained in:
Alexander Couzens 2017-02-21 15:20:39 +01:00 committed by Harald Welte
parent 17faeefa27
commit 2e6868f4c4
3 changed files with 6 additions and 6 deletions

View File

@ -140,9 +140,9 @@ int main(int argc, char **argv)
l2tp_socket_init(&l2i->trau.state, l2i->cfg.trau_path, 100, DL2TP);
l2tp_socket_init(&l2i->pgsl.state, l2i->cfg.pgsl_path, 100, DL2TP);
l2tp_set_read_callback(&l2i->rsl_oml.state, unix_rsl_oml_cb);
l2tp_set_read_callback(&l2i->pgsl.state, unix_rsl_oml_cb);
l2tp_set_read_callback(&l2i->trau.state, unix_rsl_oml_cb);
l2tp_set_read_callback(&l2i->rsl_oml.state, unix_read_cb);
l2tp_set_read_callback(&l2i->pgsl.state, unix_read_cb);
l2tp_set_read_callback(&l2i->trau.state, unix_read_cb);
while (1) {
osmo_select_main(0);

View File

@ -246,11 +246,11 @@ int lapd_switch_altc(struct l2tpd_instance *l2i, struct msgb *msg)
/*!
* \brief rsl_oml_cb called when data arrived on the unix socket
* \brief unix_read_cb called when data arrived on the unix socket
* \param fd
* \return 0 on success
*/
int unix_rsl_oml_cb(struct osmo_fd *fd)
int unix_read_cb(struct osmo_fd *fd)
{
struct msgb *msg = l2tp_msgb_alloc();
int rc;

View File

@ -2,4 +2,4 @@
int lapd_lapd_to_ehdlc(struct l2tpd_instance *l2i, struct msgb *msg);
int lapd_ehdlc_to_lapd(struct l2tpd_instance *l2i, struct l2tpd_session *session, struct msgb *msg);
int unix_rsl_oml_cb(struct osmo_fd *fd);
int unix_read_cb(struct osmo_fd *fd);