summaryrefslogtreecommitdiff
path: root/mac/sar/test/maximus_test/src/Maximus_sar.cpp
diff options
context:
space:
mode:
authorlaranjeiro2007-09-24 10:07:27 +0000
committerlaranjeiro2007-09-24 10:07:27 +0000
commit8614dcbc7cd37279ad0f3fd0258b8cfea4ec6689 (patch)
tree1963a63a2016c4078bd5257d6a2ecf165608ad32 /mac/sar/test/maximus_test/src/Maximus_sar.cpp
parent9926e455632e46ceb92b91ff9ad0be44ab80ab1d (diff)
Ended the test on maximus.
Debugged the tx_job_create function using the function of the pbproc to insert the PBs in the MFS. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@730 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'mac/sar/test/maximus_test/src/Maximus_sar.cpp')
-rw-r--r--mac/sar/test/maximus_test/src/Maximus_sar.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/mac/sar/test/maximus_test/src/Maximus_sar.cpp b/mac/sar/test/maximus_test/src/Maximus_sar.cpp
index 315df24d7b..2ba56776c2 100644
--- a/mac/sar/test/maximus_test/src/Maximus_sar.cpp
+++ b/mac/sar/test/maximus_test/src/Maximus_sar.cpp
@@ -142,7 +142,7 @@ int main (int argc, char *argv[])
sar_max_job->next->tei_dest = 2;
sar_max_job->next->bcast = false;
sar_max_job->next->mf_type = 2;
- sar_max_job->packet_id = 0;
+ sar_max_job->packet_id = 1;
max_jobs_qte = 2;
@@ -188,7 +188,7 @@ int launch_x_segs (int argc, char *argv[], sar_max_job_t *sar_max_job)
Msg fc = maximus.create_fc ("activate_logs");
logs = true;
fc.add_param ("debug", sizeof(unsigned char), (unsigned char *) &logs);
- fc.send (station1);
+ //fc.send (station1);
fc.send (station2);
segmentation (&maximus, &station1, station1_cb, sar_max_job);
@@ -336,6 +336,7 @@ bool segmentation (Maximus *maximus, Sta *station, station_cb_t sta_cb,
strcpy (id, "job");
strcat (id, val);
fc_sta.add_param (id, sizeof(sar_max_job_t), (unsigned char*) curr);
+ printf ("[DEBUG - MAX] job id : %d\n", curr->packet_id);
}
fc_sta.add_param ("qte", sizeof(unsigned char), (unsigned char*) &job_nb);
@@ -390,6 +391,7 @@ bool reassembly (Maximus *maximus, Sta *station, station_cb_t sta_cb,
strcpy (id, "job");
strcat (id, value);
fc_sta.add_param (id, sizeof(sar_max_job_t), (unsigned char*) curr);
+ printf ("[DEBUG - MAX] job id : %d\n", curr->packet_id);
}
fc_sta.add_param ("job_qte", sizeof(unsigned char),