diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-16 23:00:50 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-17 19:34:28 +0100 |
commit | 64b7d56dc0f5a7b03bad2f9d9fb147f7da0f53a1 (patch) | |
tree | 54d60c1d339a96383cd53a6406f75825019db335 /src/main_stp.c | |
parent | c5200fcb354b7c70cf0c1198abf10281906c3aad (diff) |
ss7: Move all mtp linksets callbacks into the app layer
Diffstat (limited to 'src/main_stp.c')
-rw-r--r-- | src/main_stp.c | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/src/main_stp.c b/src/main_stp.c index 11c9ecc..a9fc618 100644 --- a/src/main_stp.c +++ b/src/main_stp.c @@ -70,34 +70,6 @@ extern void cell_vty_init(void); /* * methods called from the MTP Level3 part */ -void mtp_link_set_forward_sccp(struct mtp_link_set *set, struct msgb *_msg, int sls) -{ - struct mtp_link_set *other; - if (!set->app) { - LOGP(DINP, LOGL_ERROR, "Linkset %d/%s does not have an app.\n", - set->no, set->name); - return; - } - - other = set->app->route_src.set == set ? - set->app->route_dst.set : set->app->route_src.set; - mtp_link_set_submit_sccp_data(other, sls, _msg->l2h, msgb_l2len(_msg)); -} - -void mtp_link_set_forward_isup(struct mtp_link_set *set, struct msgb *msg, int sls) -{ - struct mtp_link_set *other; - if (!set->app) { - LOGP(DINP, LOGL_ERROR, "Linkset %d/%s does not have an app.\n", - set->no, set->name); - return; - } - - other = set->app->route_src.set == set ? - set->app->route_dst.set : set->app->route_src.set; - mtp_link_set_submit_isup_data(other, sls, msg->l3h, msgb_l3len(msg)); -} - static void print_usage() { printf("Usage: osmo-stp\n"); @@ -428,3 +400,6 @@ void app_resources_released(struct ss7_application *ss7) void app_clear_connections(struct ss7_application *ss7) { } +void app_forward_sccp(struct ss7_application *ss7, struct msgb *_msg, int sls) +{ +} |