diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-02 18:11:37 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-17 11:21:10 +0100 |
commit | 346e1c4bc4266ad645aab88d6357518e17055fb3 (patch) | |
tree | 7c57a91a277e0d2fd0a2ec1e03cd8ce1ebb7b530 /src/main.c | |
parent | 45738887be2299cf5fca19b1f94c6054cca41239 (diff) |
mtp: Attempt to select the sls properly in the round robin fashion
When we call the submit method with a SLS of -1 we will try
to find the next SLS to do things in a round robin way.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -224,7 +224,7 @@ static void bsc_reset_timeout(void *_data) } ++bsc->reset_count; - mtp_link_submit_sccp_data(bsc->link.the_link, 13, msg->l2h, msgb_l2len(msg)); + mtp_link_submit_sccp_data(bsc->link.the_link, -1, msg->l2h, msgb_l2len(msg)); msgb_free(msg); bsc_schedule_timer(&bsc->reset_timeout, 20, 0); } @@ -351,7 +351,7 @@ static void handle_rlsd(struct sccp_connection_released *rlsd, int from_msc) &rlsd->source_local_reference); } } else { - unsigned int sls = 13; + unsigned int sls = -1; con = find_con_by_src_dest_ref(&rlsd->source_local_reference, &rlsd->destination_local_reference); if (con) { |